# Yandex Coding Interview Questions

> 134 DSA problems asked in Yandex coding interviews and online assessments, sorted easiest first with hints. Free practice for placements on InternHack.

Canonical: https://www.internhack.in/learn/dsa/companies/yandex
Last updated: 2026-11-28

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](https://www.internhack.in/learn/dsa/problem/add-strings) (Easy)
2. [Allow One Function Call](https://www.internhack.in/learn/dsa/problem/allow-one-function-call) (Easy)
3. [Balanced Binary Tree](https://www.internhack.in/learn/dsa/problem/balanced-binary-tree) (Easy)
4. [Best Time to Buy and Sell Stock](https://www.internhack.in/learn/dsa/problem/best-time-to-buy-and-sell-stock) (Easy)
5. [Can Place Flowers](https://www.internhack.in/learn/dsa/problem/can-place-flowers) (Easy)
6. [Count Number of Pairs With Absolute Difference K](https://www.internhack.in/learn/dsa/problem/count-number-of-pairs-with-absolute-difference-k) (Easy)
7. [Counter II](https://www.internhack.in/learn/dsa/problem/counter-ii) (Easy)
8. [Create Hello World Function](https://www.internhack.in/learn/dsa/problem/create-hello-world-function) (Easy)
9. [Design an Ordered Stream](https://www.internhack.in/learn/dsa/problem/design-an-ordered-stream) (Easy)
10. [Destination City](https://www.internhack.in/learn/dsa/problem/destination-city) (Easy)
11. [Employees Earning More Than Their Managers](https://www.internhack.in/learn/dsa/problem/employees-earning-more-than-their-managers) (Easy)
12. [Find Common Elements Between Two Arrays](https://www.internhack.in/learn/dsa/problem/find-common-elements-between-two-arrays) (Easy)
13. [Find the Difference of Two Arrays](https://www.internhack.in/learn/dsa/problem/find-the-difference-of-two-arrays) (Easy)
14. [First Unique Character in a String](https://www.internhack.in/learn/dsa/problem/first-unique-character-in-a-string) (Easy)
15. [Function Composition](https://www.internhack.in/learn/dsa/problem/function-composition) (Easy)
16. [Implement Queue using Stacks](https://www.internhack.in/learn/dsa/problem/implement-queue-using-stacks) (Easy)
17. [Intersection of Two Arrays](https://www.internhack.in/learn/dsa/problem/intersection-of-two-arrays) (Easy)
18. [Intersection of Two Arrays II](https://www.internhack.in/learn/dsa/problem/intersection-of-two-arrays-ii) (Easy)
19. [Is Subsequence](https://www.internhack.in/learn/dsa/problem/is-subsequence) (Easy)
20. [Isomorphic Strings](https://www.internhack.in/learn/dsa/problem/isomorphic-strings) (Easy)
21. [Jewels and Stones](https://www.internhack.in/learn/dsa/problem/jewels-and-stones) (Easy)
22. [Linked List Cycle](https://www.internhack.in/learn/dsa/problem/linked-list-cycle) (Easy)
23. [Longest Continuous Increasing Subsequence](https://www.internhack.in/learn/dsa/problem/longest-continuous-increasing-subsequence) (Easy)
24. [Longest Strictly Increasing or Strictly Decreasing Subarray](https://www.internhack.in/learn/dsa/problem/longest-strictly-increasing-or-strictly-decreasing-subarray) (Easy)
25. [Majority Element](https://www.internhack.in/learn/dsa/problem/majority-element) (Easy)
26. [Matrix Diagonal Sum](https://www.internhack.in/learn/dsa/problem/matrix-diagonal-sum) (Easy)
27. [Max Consecutive Ones](https://www.internhack.in/learn/dsa/problem/max-consecutive-ones) (Easy)
28. [Maximum Average Subarray I](https://www.internhack.in/learn/dsa/problem/maximum-average-subarray-i) (Easy)
29. [Merge Sorted Array](https://www.internhack.in/learn/dsa/problem/merge-sorted-array) (Easy)
30. [Merge Two 2D Arrays by Summing Values](https://www.internhack.in/learn/dsa/problem/merge-two-2d-arrays-by-summing-values) (Easy)
31. [Merge Two Sorted Lists](https://www.internhack.in/learn/dsa/problem/merge-two-sorted-lists) (Easy)
32. [Monotonic Array](https://www.internhack.in/learn/dsa/problem/monotonic-array) (Easy)
33. [Move Zeroes](https://www.internhack.in/learn/dsa/problem/move-zeroes) (Easy)
34. [Number of Recent Calls](https://www.internhack.in/learn/dsa/problem/number-of-recent-calls) (Easy)
35. [Palindrome Linked List](https://www.internhack.in/learn/dsa/problem/palindrome-linked-list) (Easy)
36. [Palindrome Number](https://www.internhack.in/learn/dsa/problem/palindrome-number) (Easy)
37. [Path Crossing](https://www.internhack.in/learn/dsa/problem/path-crossing) (Easy)
38. [Range Sum of BST](https://www.internhack.in/learn/dsa/problem/range-sum-of-bst) (Easy)
39. [Remove Duplicates from Sorted Array](https://www.internhack.in/learn/dsa/problem/remove-duplicates-from-sorted-array) (Easy)
40. [Remove Element](https://www.internhack.in/learn/dsa/problem/remove-element) (Easy)
41. [Reverse Linked List](https://www.internhack.in/learn/dsa/problem/reverse-linked-list) (Easy)
42. [Roman to Integer](https://www.internhack.in/learn/dsa/problem/roman-to-integer) (Easy)
43. [Search Insert Position](https://www.internhack.in/learn/dsa/problem/search-insert-position) (Easy)
44. [Single Number](https://www.internhack.in/learn/dsa/problem/single-number) (Easy)
45. [Squares of a Sorted Array](https://www.internhack.in/learn/dsa/problem/squares-of-a-sorted-array) (Easy)
46. [Summary Ranges](https://www.internhack.in/learn/dsa/problem/summary-ranges) (Easy)
47. [Symmetric Tree](https://www.internhack.in/learn/dsa/problem/symmetric-tree) (Easy)
48. [Two Sum](https://www.internhack.in/learn/dsa/problem/two-sum) (Easy)
49. [Valid Anagram](https://www.internhack.in/learn/dsa/problem/valid-anagram) (Easy)
50. [Valid Palindrome](https://www.internhack.in/learn/dsa/problem/valid-palindrome) (Easy)
51. [Valid Palindrome II](https://www.internhack.in/learn/dsa/problem/valid-palindrome-ii) (Easy)
52. [Valid Parentheses](https://www.internhack.in/learn/dsa/problem/valid-parentheses) (Easy)
53. [Add Two Numbers](https://www.internhack.in/learn/dsa/problem/add-two-numbers) (Medium)
54. [Basic Calculator II](https://www.internhack.in/learn/dsa/problem/basic-calculator-ii) (Medium)
55. [Binary Tree Level Order Traversal](https://www.internhack.in/learn/dsa/problem/binary-tree-level-order-traversal) (Medium)
56. [Binary Tree Right Side View](https://www.internhack.in/learn/dsa/problem/binary-tree-right-side-view) (Medium)
57. [Binary Tree Zigzag Level Order Traversal](https://www.internhack.in/learn/dsa/problem/binary-tree-zigzag-level-order-traversal) (Medium)
58. [Coin Change](https://www.internhack.in/learn/dsa/problem/coin-change) (Medium)
59. [Continuous Subarray Sum](https://www.internhack.in/learn/dsa/problem/continuous-subarray-sum) (Medium)
60. [Daily Temperatures](https://www.internhack.in/learn/dsa/problem/daily-temperatures) (Medium)
61. [Design Hit Counter](https://www.internhack.in/learn/dsa/problem/design-hit-counter) (Medium)
62. [Evaluate Reverse Polish Notation](https://www.internhack.in/learn/dsa/problem/evaluate-reverse-polish-notation) (Medium)
63. [Find All Anagrams in a String](https://www.internhack.in/learn/dsa/problem/find-all-anagrams-in-a-string) (Medium)
64. [Find Duplicate Subtrees](https://www.internhack.in/learn/dsa/problem/find-duplicate-subtrees) (Medium)
65. [Find K Closest Elements](https://www.internhack.in/learn/dsa/problem/find-k-closest-elements) (Medium)
66. [Find Minimum in Rotated Sorted Array](https://www.internhack.in/learn/dsa/problem/find-minimum-in-rotated-sorted-array) (Medium)
67. [Flatten Nested List Iterator](https://www.internhack.in/learn/dsa/problem/flatten-nested-list-iterator) (Medium)
68. [Implement Rand10() Using Rand7()](https://www.internhack.in/learn/dsa/problem/implement-rand10-using-rand7) (Medium)
69. [Insert Delete GetRandom O(1)](https://www.internhack.in/learn/dsa/problem/insert-delete-getrandom-o1) (Medium)
70. [Line Reflection](https://www.internhack.in/learn/dsa/problem/line-reflection) (Medium)
71. [Longest Increasing Subsequence](https://www.internhack.in/learn/dsa/problem/longest-increasing-subsequence) (Medium)
72. [Longest Repeating Character Replacement](https://www.internhack.in/learn/dsa/problem/longest-repeating-character-replacement) (Medium)
73. [Longest Substring with At Least K Repeating Characters](https://www.internhack.in/learn/dsa/problem/longest-substring-with-at-least-k-repeating-characters) (Medium)
74. [Longest Substring with At Most K Distinct Characters](https://www.internhack.in/learn/dsa/problem/longest-substring-with-at-most-k-distinct-characters) (Medium)
75. [Longest Substring Without Repeating Characters](https://www.internhack.in/learn/dsa/problem/longest-substring-without-repeating-characters) (Medium)
76. [Lowest Common Ancestor of a Binary Search Tree](https://www.internhack.in/learn/dsa/problem/lowest-common-ancestor-of-a-binary-search-tree) (Medium)
77. [LRU Cache](https://www.internhack.in/learn/dsa/problem/lru-cache) (Medium)
78. [Max Consecutive Ones II](https://www.internhack.in/learn/dsa/problem/max-consecutive-ones-ii) (Medium)
79. [Maximize Distance to Closest Person](https://www.internhack.in/learn/dsa/problem/maximize-distance-to-closest-person) (Medium)
80. [Min Stack](https://www.internhack.in/learn/dsa/problem/min-stack) (Medium)
81. [Minimum Size Subarray Sum](https://www.internhack.in/learn/dsa/problem/minimum-size-subarray-sum) (Medium)
82. [Number of Islands](https://www.internhack.in/learn/dsa/problem/number-of-islands) (Medium)
83. [One Edit Distance](https://www.internhack.in/learn/dsa/problem/one-edit-distance) (Medium)
84. [Partition Labels](https://www.internhack.in/learn/dsa/problem/partition-labels) (Medium)
85. [Perfect Squares](https://www.internhack.in/learn/dsa/problem/perfect-squares) (Medium)
86. [Permutation in String](https://www.internhack.in/learn/dsa/problem/permutation-in-string) (Medium)
87. [String Compression](https://www.internhack.in/learn/dsa/problem/string-compression) (Medium)
88. [Subarray Sum Equals K](https://www.internhack.in/learn/dsa/problem/subarray-sum-equals-k) (Medium)
89. [Top K Frequent Elements](https://www.internhack.in/learn/dsa/problem/top-k-frequent-elements) (Medium)
90. [Two Sum II - Input Array Is Sorted](https://www.internhack.in/learn/dsa/problem/two-sum-ii-input-array-is-sorted) (Medium)
91. [Binary Tree Maximum Path Sum](https://www.internhack.in/learn/dsa/problem/binary-tree-maximum-path-sum) (Hard)
92. [Contains Duplicate III](https://www.internhack.in/learn/dsa/problem/contains-duplicate-iii) (Hard)
93. [Find Median from Data Stream](https://www.internhack.in/learn/dsa/problem/find-median-from-data-stream) (Hard)
94. [Median of Two Sorted Arrays](https://www.internhack.in/learn/dsa/problem/median-of-two-sorted-arrays) (Hard)
95. [Merge k Sorted Lists](https://www.internhack.in/learn/dsa/problem/merge-k-sorted-lists) (Hard)
96. [Minimum Window Substring](https://www.internhack.in/learn/dsa/problem/minimum-window-substring) (Hard)
97. [Reconstruct Itinerary](https://www.internhack.in/learn/dsa/problem/reconstruct-itinerary) (Hard)
98. [Sliding Window Maximum](https://www.internhack.in/learn/dsa/problem/sliding-window-maximum) (Hard)
99. [Text Justification](https://www.internhack.in/learn/dsa/problem/text-justification) (Hard)
100. [Trapping Rain Water](https://www.internhack.in/learn/dsa/problem/trapping-rain-water) (Hard)

## Prepare for the rest of the Yandex process

- [Aptitude questions by company](https://www.internhack.in/learn/aptitude/companies)
- [Technical interview questions](https://www.internhack.in/learn/interview)
- [Free ATS resume check](https://www.internhack.in/ats-score/try), no signup

## Other companies

- [Google](https://www.internhack.in/learn/dsa/companies/google) (2217)
- [Amazon](https://www.internhack.in/learn/dsa/companies/amazon) (1938)
- [Meta](https://www.internhack.in/learn/dsa/companies/meta) (1387)
- [Microsoft](https://www.internhack.in/learn/dsa/companies/microsoft) (1352)
- [Bloomberg](https://www.internhack.in/learn/dsa/companies/bloomberg) (1173)
- [Tiktok](https://www.internhack.in/learn/dsa/companies/tiktok) (383)
- [Uber](https://www.internhack.in/learn/dsa/companies/uber) (381)
- [Apple](https://www.internhack.in/learn/dsa/companies/apple) (356)
- [Oracle](https://www.internhack.in/learn/dsa/companies/oracle) (340)
- [Goldman Sachs](https://www.internhack.in/learn/dsa/companies/goldman-sachs) (270)
- [Adobe](https://www.internhack.in/learn/dsa/companies/adobe) (227)
- [TCS](https://www.internhack.in/learn/dsa/companies/tcs) (217)
- [Salesforce](https://www.internhack.in/learn/dsa/companies/salesforce) (189)
- [Linkedin](https://www.internhack.in/learn/dsa/companies/linkedin) (180)
- [Zoho](https://www.internhack.in/learn/dsa/companies/zoho) (179)
- [IBM](https://www.internhack.in/learn/dsa/companies/ibm) (170)
- [Infosys](https://www.internhack.in/learn/dsa/companies/infosys) (158)
- [Walmart Labs](https://www.internhack.in/learn/dsa/companies/walmart-labs) (152)
- [Accenture](https://www.internhack.in/learn/dsa/companies/accenture) (144)
- [Nvidia](https://www.internhack.in/learn/dsa/companies/nvidia) (137)
- [DE Shaw](https://www.internhack.in/learn/dsa/companies/de-shaw) (124)
- [Visa](https://www.internhack.in/learn/dsa/companies/visa) (124)
- [Flipkart](https://www.internhack.in/learn/dsa/companies/flipkart) (117)
- [Paypal](https://www.internhack.in/learn/dsa/companies/paypal) (106)

## Related

- [Home](https://www.internhack.in/)
- [Learn](https://www.internhack.in/learn)
- [DSA by company](https://www.internhack.in/learn/dsa/companies)
