Recursive Algorithm Interview Questions
(Posted anonymously by job candidates)
| 12 Interview Questions: 1–10 of 12 | Sort by |
Feb 8, 2012
Interview Question for Game Programmer at Zynga:
|
“How do you find the max depth of a binary tree?” |
Jan 18, 2012
Interview Question for Computer Science Intern at Amazon.com:
|
“Implement a Linked List class (for ints only) that supports an append function, which simply appends to the end of the list. |
Jan 18, 2012
Interview Question for Computer Science Intern at Amazon.com:
|
“You are given a Binary Search Tree of ints with duplicate entries. You are guaranteed that if an element has a duplicate entry, it is in the right subtree of that element. Write a function to count the total number of duplicates. |
Nov 17, 2011
Interview Question for Software Engineer at Meebo:
|
“Write a function for mutliply(a,b), where a and b are both positive integers, but you can only use the + or - operators.” |
Nov 17, 2011
Interview Question for Software Engineer at Meebo:
|
“Write the function nqueens(num_rows, num_cols, num_queens) -- where num_rows and num_cols is the size of an arbitrary chess board. Function returns "true" if there exists a way to place "num_queens" queens without any queen threatening any other queen, false if it isn't possible. |
Nov 11, 2011
Interview Question for Senior Consultant at CIBER:
|
“Describe a case where you would need to use a cursor to return records from a table.” |
Oct 17, 2011
Interview Question for Software Engineer at TripAdvisor:
|
“Write a function that raises a number to an exponent in C or Java...” |
Feb 7, 2011
Interview Question for Software Engineering Intern at Facebook:
|
“Implement a power function to raise a double to an int power, including negative powers.” |
May 8, 2010
Interview Question for Software Engineer at Google:
|
“Write a function Brackets(int n) that prints all combinations of well-formed brackets. For Brackets(3) the output would be |
Oct 15, 2009
Interview Question for Member of Technical Staff at VMware:
|
“I don't remember exactly, but some standard low-level C/C++/Java questions. Maybe something about string manipulation, bit play, recursive algorithms, threads, networking, etc.” |
