Yandex Coding Interview Questions

134 DSA problems tagged as asked in Yandex coding interviews and online assessments. Below are the first 100 of 134: 52 easy, 38 medium and 10 hard. Start with the easy ones, then move to medium. Practise free on InternHack and track your progress.

Yandex DSA problems, easiest first

  1. Add Strings (Easy)
  2. Allow One Function Call (Easy)
  3. Balanced Binary Tree (Easy)
  4. Best Time to Buy and Sell Stock (Easy)
  5. Can Place Flowers (Easy)
  6. Count Number of Pairs With Absolute Difference K (Easy)
  7. Counter II (Easy)
  8. Create Hello World Function (Easy)
  9. Design an Ordered Stream (Easy)
  10. Destination City (Easy)
  11. Employees Earning More Than Their Managers (Easy)
  12. Find Common Elements Between Two Arrays (Easy)
  13. Find the Difference of Two Arrays (Easy)
  14. First Unique Character in a String (Easy)
  15. Function Composition (Easy)
  16. Implement Queue using Stacks (Easy)
  17. Intersection of Two Arrays (Easy)
  18. Intersection of Two Arrays II (Easy)
  19. Is Subsequence (Easy)
  20. Isomorphic Strings (Easy)
  21. Jewels and Stones (Easy)
  22. Linked List Cycle (Easy)
  23. Longest Continuous Increasing Subsequence (Easy)
  24. Longest Strictly Increasing or Strictly Decreasing Subarray (Easy)
  25. Majority Element (Easy)
  26. Matrix Diagonal Sum (Easy)
  27. Max Consecutive Ones (Easy)
  28. Maximum Average Subarray I (Easy)
  29. Merge Sorted Array (Easy)
  30. Merge Two 2D Arrays by Summing Values (Easy)
  31. Merge Two Sorted Lists (Easy)
  32. Monotonic Array (Easy)
  33. Move Zeroes (Easy)
  34. Number of Recent Calls (Easy)
  35. Palindrome Linked List (Easy)
  36. Palindrome Number (Easy)
  37. Path Crossing (Easy)
  38. Range Sum of BST (Easy)
  39. Remove Duplicates from Sorted Array (Easy)
  40. Remove Element (Easy)
  41. Reverse Linked List (Easy)
  42. Roman to Integer (Easy)
  43. Search Insert Position (Easy)
  44. Single Number (Easy)
  45. Squares of a Sorted Array (Easy)
  46. Summary Ranges (Easy)
  47. Symmetric Tree (Easy)
  48. Two Sum (Easy)
  49. Valid Anagram (Easy)
  50. Valid Palindrome (Easy)
  51. Valid Palindrome II (Easy)
  52. Valid Parentheses (Easy)
  53. Add Two Numbers (Medium)
  54. Basic Calculator II (Medium)
  55. Binary Tree Level Order Traversal (Medium)
  56. Binary Tree Right Side View (Medium)
  57. Binary Tree Zigzag Level Order Traversal (Medium)
  58. Coin Change (Medium)
  59. Continuous Subarray Sum (Medium)
  60. Daily Temperatures (Medium)
  61. Design Hit Counter (Medium)
  62. Evaluate Reverse Polish Notation (Medium)
  63. Find All Anagrams in a String (Medium)
  64. Find Duplicate Subtrees (Medium)
  65. Find K Closest Elements (Medium)
  66. Find Minimum in Rotated Sorted Array (Medium)
  67. Flatten Nested List Iterator (Medium)
  68. Implement Rand10() Using Rand7() (Medium)
  69. Insert Delete GetRandom O(1) (Medium)
  70. Line Reflection (Medium)
  71. Longest Increasing Subsequence (Medium)
  72. Longest Repeating Character Replacement (Medium)
  73. Longest Substring with At Least K Repeating Characters (Medium)
  74. Longest Substring with At Most K Distinct Characters (Medium)
  75. Longest Substring Without Repeating Characters (Medium)
  76. Lowest Common Ancestor of a Binary Search Tree (Medium)
  77. LRU Cache (Medium)
  78. Max Consecutive Ones II (Medium)
  79. Maximize Distance to Closest Person (Medium)
  80. Min Stack (Medium)
  81. Minimum Size Subarray Sum (Medium)
  82. Number of Islands (Medium)
  83. One Edit Distance (Medium)
  84. Partition Labels (Medium)
  85. Perfect Squares (Medium)
  86. Permutation in String (Medium)
  87. String Compression (Medium)
  88. Subarray Sum Equals K (Medium)
  89. Top K Frequent Elements (Medium)
  90. Two Sum II - Input Array Is Sorted (Medium)
  91. Binary Tree Maximum Path Sum (Hard)
  92. Contains Duplicate III (Hard)
  93. Find Median from Data Stream (Hard)
  94. Median of Two Sorted Arrays (Hard)
  95. Merge k Sorted Lists (Hard)
  96. Minimum Window Substring (Hard)
  97. Reconstruct Itinerary (Hard)
  98. Sliding Window Maximum (Hard)
  99. Text Justification (Hard)
  100. Trapping Rain Water (Hard)

Prepare for the rest of the Yandex process

Other companies