How would you implement Amazon's "users who bought this item also bought ..." feature?
Development Intern Interview Questions
5,450 development intern interview questions shared by candidates
Not hard at all.
Remove duplicates from a linked list. O(n) time.
Write a function to remove all redundant characters in a given string.
Write an algorithm that does an in-order traversal of a tree recursively. Now, write the same algorithm iteratively.
1. How to display two block elements horizontally?
Given a 2D array, find the sum of all the elements in the array. O(n^2) solution is too slow, find ways to optimize (ended up adding a second parameter 2D array).
About the details, and interviewer will communicate with you when you are typing.
To find least common ancestor in a binary search tree
Write a function that returns the depth of a tree.
Viewing 61 - 70 interview questions