Coding Interview Questions
- 0of 0 votes
AnswersWrite code (in C) to convert a binary search tree into a sorted doubly linked list. The algorithm should use recursion and should be done in place.
- Ravi Kant Pandey April 25, 2007| Report Duplicate | Flag | PURGE
Adobe Software Engineer / Developer Coding Algorithm Linked Lists - 3of 3 votes
AnswersGiven a value and a binary search tree.
- vodangkhoa April 24, 2007
Print all the paths(if there exists more than one) which sum up to that value. It can be any path in the tree. It doesn't have to be from the root.| Report Duplicate | Flag | PURGE
Microsoft Yahoo Software Engineer / Developer Trees and Graphs Coding Algorithm - 0of 0 votes
AnswersDetermine which level has the maximum number of nodes in a N Ary Tree?
- vodangkhoa April 19, 2007| Report Duplicate | Flag | PURGE
Microsoft Software Engineer / Developer Coding Algorithm - 0of 0 votes
AnswersGiven a binary tree, convert it into a doubly linked list in place
- ola April 13, 2007| Report Duplicate | Flag | PURGE
Amazon Software Engineer / Developer Coding - 0of 0 votes
Answerswrite a program to check if the tree is BST
- Ravi Kant Pandey April 04, 2007| Report Duplicate | Flag | PURGE
Infosys Software Engineer / Developer Coding Algorithm - 0of 0 votes
Answerswithout using temporary variable swap two numbers and also reverse a string
- ramya April 03, 2007| Report Duplicate | Flag | PURGE
VMWare Inc Software Engineer / Developer Coding - 0of 0 votes
AnswersImplement the unix command WordCount (wc) using lenguage of your choice. The method takes a string and returns the number of words in the string, number of chars and the number of lines.
- sn April 03, 2007| Report Duplicate | Flag | PURGE
Amazon Software Engineer / Developer Coding - 0of 0 votes
AnswersImplement Find and Delete for binary tree.
- vodangkhoa March 26, 2007| Report Duplicate | Flag | PURGE
Ebay Software Engineer / Developer Coding Algorithm - 0of 0 votes
AnswersWell I just fucked up a great opportunity. Oh well, that's not what this sites about:
- FusedEntropy March 09, 2007
#1 Which is faster ++a or a++
#2 Implement a class where implicit conversion takes place.
#3 Diff between stringcopy and memcopy
#4 A program crashes before it reaches main. Where would you look for the problem?
#5 What it wrong with this function:
F1(...){
x = new();
F2();
delete x;
}
#6 when implementing a + operation "string + (string)". how would you return the return value, by ref or by val.| Report Duplicate | Flag | PURGE
Goldman Sachs Software Engineer / Developer Coding - 0of 0 votes
AnswersGenerate a maze. There should be a path from the entry point to the exit point.
- vodangkhoa March 08, 2007| Report Duplicate | Flag | PURGE
Microsoft Software Engineer / Developer Coding Algorithm - 0of 0 votes
AnswersHow do you determine the size of an object in Java?
- vodangkhoa March 04, 2007| Report Duplicate | Flag | PURGE
Amazon Software Engineer / Developer Terminology & Trivia Coding - 0of 0 votes
AnswersAsked me to implement a Garbage collector for C++
- pg February 27, 2007| Report Duplicate | Flag | PURGE
VMWare Inc Software Engineer / Developer Coding - -1of 1 vote
AnswersHow do you remove the duplicate characters in a given string without using any additional buffer. Give the Algo., write code and list the test cases.
- Sadineni February 26, 2007| Report Duplicate | Flag | PURGE
Microsoft Coding Algorithm - 0of 0 votes
AnswersHow will you determine the page size of a *nix machine using C code ? Hint: Use malloc()
- kakkajee February 24, 2007| Report Duplicate | Flag | PURGE
EMC Software Engineer / Developer Coding - 0of 0 votes
AnswerImplement an algorithm to print out all files below a given root node.
- Sdey February 21, 2007| Report Duplicate | Flag | PURGE
Microsoft Software Engineer / Developer Coding - 0of 0 votes
AnswersHow would you design a mutex?
- Everyone February 20, 2007| Report Duplicate | Flag | PURGE
MarketRX Software Engineer / Developer Coding - 0of 0 votes
AnswersGiven an unsorted array of positive integers and an integer N, return N if N existed in the array or the first number that is smaller than N.
- vodangkhoa February 15, 2007
Give a O(N) algorithm.| Report Duplicate | Flag | PURGE
Microsoft Software Engineer / Developer Coding Algorithm - 0of 0 votes
Answerswrite a program to find whether the m/c is big endian or little endian
- Gaurav February 03, 2007| Report Duplicate | Flag | PURGE
Adobe Software Engineer / Developer Coding - 0of 0 votes
AnswersGiven a node in a binary tree, find the next largest node.
- vodangkhoa February 01, 2007| Report Duplicate | Flag | PURGE
Microsoft Software Engineer / Developer Coding Algorithm