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).
Development Intern Interview Questions
5,450 development intern interview questions shared by candidates
Heap Sorting. What data structure do you use to implement it? Time to access and sort. Code it.
Is it possible to sort using linear time a file with lots of numbers that contain duplicates, when there are no limits of resources or space?
About the details, and interviewer will communicate with you when you are typing.
To find least common ancestor in a binary search tree
You have a building with 100 stories. You also have two glass balls. You can drop the glass balls as many times as you want before they break. How can you find the floor at which they start breaking with the fewest number of drops?
Create a Priority Queue with all methods.
Intersection of two linked lists
Find if a linked list has a cycle in it.
Given an array of sorted characters and a target character, find the closest character from array.
Viewing 71 - 80 interview questions