The same list, back to inorder binary tree
Software Engineer C Interview Questions
665,113 software engineer c interview questions shared by candidates
Given array find 3 elements that sum up to 0.
Given a binary tree, which is not necessarily balanced, print the nodes in the tree in a level-wise manner. Also, nodes on the same level should be printed on a single line. A modification of the question was added later in which I cannot really add a "level" variable in the structure of the node in the tree.
Find the two largest numbers in an array
Given a log of users visit to a site for a day, how would you find returning users given the log visit for another day
There was only one question. How to compress a string? If "AAABBAAA" the resultant string should be 3A2B3A.
given an arrya of numbers see if you can get to index with 0 in it from an index by jumping through the array using the values in the array. So if you have [1,2,1,0,3] you can get to 0, from 0 by jumping 0, you can get to 0 from 3, by jumping 3 index down to 2 and then jumping 2 index up to 0...
Why Accenture?
1. Given a string, find the smallest window with greatest no. of distinct characters 2. k sorted array. 3. longest distance between a node and its ancestor.
You have words separated by white spaces. You need to reverse their order in place.
Viewing 771 - 780 interview questions