Algorithms questions
Here you can find most famous inteview questions:

In this part of these articles, we will study some of the most famous interview questions; you will get the question, some hints, then one solution with explanations.
Don’t learn by heart all answers. Most of the time, there is not only one correct solution, but some are also more efficient than others, search for patterns and concepts that you can understand and reuse. Some questions you will get can be very similar to what you already did, then see what is common and what can be reused and adapted.
But please, before jumping to the solutions and explanations or looking at the hints, try to answer by yourself. You can do it first without time constraints; then, with time constraints, this is the best way to crack the tech interview coding questions.
- 1. All Permutations - 2. Almost Non-Decreasing - 3. Biggest Multiplication of a triplet - 4. Maximum Sum Between Any Two Nodes - 5. Binary Tree Iterator - 6. Find the Words - 7. Valid Parentheses String - 8. Coloring Graph With K Colors - 9. Arithmetic Expression Tree - 10. Deepest Node in a Binary Tree - 11. Delete a Node From a Singly Linked List - 12. Serialize and Deserialize a Binary Tree - 13. The Dutch National Flag Problem - 14. Fizz Buzz - 15. Rectangular Intersection of Two Rectangles - 16. Find the Unique Integer - 17. Time based Hash Map - 18. Multiplication Table - 19. Invert a Binary Tree - 20. Monotonic Array - 21. Palindrome - 22. Binary Subtree - 23. Trip Duration’s Movies - 24. Valid Binary Search Tree (BST) - 25. Largest Binary Search Subtree (BST) - 26. Least Recently Used (LRU) / Least Frequent Used (LFU) - 27. Longest Subsequence - 28. The Longest palindrome - 29. Longest Consecutive Elements Sequence - 30. Lowest Common Ancestor (LCA) - 31. Subset Array Sum - 32. Max Duffel Bag - 33. Maximum Graph Path - 34. Max Stack - 35. Merge Sorted Linked Lists - 36. Merging Overlapping Intervals - 37. Array’s inversions Count - 38. Number of Jumps To Reach the Array’s End - 39. Number Pad (Convert numeric keyboard String) - 40. Palindrome Pairs - 41. Permutation Generator - 42. Rotated Sorted Array - 43. Power Function - 44. Power Set (all possible subsets) - 45. 2 Prime Numbers Target - 46. 2 Stacks Queue - 47. Trapped Water Quantity - 48. Same probability: Random 7 / Random 5 - 49. Build a Binary Tree (from pre-order and in-order traversals) - 50. Remove sorted array duplicates (in-place) - 51. Resolve All Tasks In Order - 52. Reverse a Simple Linked List - 53. Reverse All Words - 54. Shortest Path in Friendship network - 55. Identical Probability Array Shuffling - 56. Strings Distance - 57. Swap Even and Odd bits - 58. Triplets Sum Target - 59. Matrix Path from Top Left to Bottom Right - 60. Same probability From a Biased Coin - 61. Find the only 1 unique from a triplets array
Find this book on amazon: Australia, Brazil, Canada, France, Germany, India, Italy, Japan, Mexico, Netherlands, Spain, United Kingdom, United States.




