Interview questions

Software Developer interview questions – page 28

945 questions. Tap “Show answer” to check yourself.

  1. Given a cordinate system in which there are n points. you have to calculate the m minimum points from some origin point. Suggest a data structure for this

  2. Design the most optimal data structure for a never ending stream of numbers. It should be optimized for insertion, deletion, searching, finding kth largest and kth smallest

  3. Reverse a binary search tree in such a manner so that parent child relationship maintained and left child become right child and vice versa

  4. Find the minimum and maximum element in stack in O(1)

  5. given an array find the next minimum element in array for each element. for example if give array is 4,2,1,5,3 resultant array would be 2,1,-1,3,-1

  6. Write a recursive routine to calculate a ^ n

  7. Design the most optimal data structures for an LRU cache

  8. Convert a sorted array to balanced binary search tree

  9. Reverse a singly linked list in groups of k in­place

  10. Design the most optimal data structure for storing a word and its meaning. Note that a word could have multiple meanings

  11. Given a bst. Replace the value in each node with sum of all the nodes which have values greater than the node itself

  12. No of combinations of moves for knight in chess board are given return total possible positions

  13. Little discussion on intern project and then discussion on java project

  14. Multiple requests for storing multiple files on a server. How to keep them mutually exclusive?

  15. Write COMPLETE code for implementing a hash table?

  16. What is paging. what is virtual memory and discussion on why do we have virtual memory?

  17. Inside a system with 4 gb ram OS only uses around 3.2 gb. Why is rest of the memory lying waste?

  18. A LONG discussion on implementing a T-9 dictionary in a mobile

  19. An array is given which may be any of the 4 cases a.) completely increasing b.) completely decreasing c.) decreasing then increasing d.) increasing then decreasing. Find max in the array. o(log n) solution. Then o(1) solution for 3 cases out of these

  20. How to merge k sorted arrays of n length and discussion on its complexity?

  21. How to identify that if a tree is a bst or not?

  22. Discussion about the java project

  23. Shortest path in maze and then discussion on it. Maze was modified into a n-dimension maze. complete code for 2-d maze

  24. A person can take one or two steps at a time. Find the number of ways in which n steps can be travelled

  25. Take a infix expression as input and print its postfix expression

  26. Given a table m*n , find the number of ways of reaching from one corner to opposite corner, if a person can only move in two directions( towards the goal)

  27. Replace every element in array with its closest maximum element in right. As amortized analysis was involved he asked for mathematical proof

  28. Asked to design distributed Hashtable . Discussed pros and cons

  29. How will you resolve conflicts with your manager

  30. How will you resolve conflicts with your team mates

Companies that ask Software Developer questions