There was 1 online coding round, followed by interviews. Online coding round was on Codechef. Online round: There were 2 questions. Question 1: A string… Read More

# Tag Archives: Directi

I took Coding Round 1 of Direct I campus recruitment today. Sharing the 2 questions which have been asked. Question 1 (Optimal substring reversal): You… Read More

MS Excel columns have a pattern like A, B, C, …, Z, AA, AB, AC, …., AZ, BA, BB, … ZZ, AAA, AAB ….. etc.… Read More

Given a binary tree in which each node element contains a number. Find the maximum possible sum from one leaf node to another. The maximum sum… Read More

Online round: 1. There exist a binary tree with each node containing a character (lower case letters for leaf nodes and upper case letters for… Read More

The cost of a stock on each day is given in an array, find the max profit that you can make by buying and… Read More

There was 1 online coding round, followed by interviews. Online coding round was on Codechef. 1st question Sandeep and Pali want to go on holiday.… Read More

Written Round: 1) Given a binary tree, such that each node contains a number. Find the maximum possible sum in going from one leaf node… Read More

Given a partially filled 9×9 2D array ‘grid[9][9]’, the goal is to assign digits (from 1 to 9) to the empty cells so that every… Read More

Given an array and an integer K, find the maximum for each and every contiguous subarray of size k. Examples : Input: arr[] = {1,… Read More

Given an n x n matrix and a number x, find the position of x in the matrix if it is present in it. Otherwise,… Read More

The diameter of a tree (sometimes called the width) is the number of nodes on the longest path between two end nodes. The diagram below… Read More