# Ebay Coding Interview Questions

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

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

60 DSA problems tagged as asked in Ebay coding interviews and online assessments. Below are all 60: 12 easy, 38 medium and 10 hard. Start with the easy ones, then move to medium. Practise free on InternHack and track your progress.

## Ebay DSA problems, easiest first

1. [Alternating Digit Sum](https://www.internhack.in/learn/dsa/problem/alternating-digit-sum) (Easy)
2. [Binary Gap](https://www.internhack.in/learn/dsa/problem/binary-gap) (Easy)
3. [Find Pivot Index](https://www.internhack.in/learn/dsa/problem/find-pivot-index) (Easy)
4. [Move Zeroes](https://www.internhack.in/learn/dsa/problem/move-zeroes) (Easy)
5. [Palindrome Linked List](https://www.internhack.in/learn/dsa/problem/palindrome-linked-list) (Easy)
6. [Remove One Element to Make the Array Strictly Increasing](https://www.internhack.in/learn/dsa/problem/remove-one-element-to-make-the-array-strictly-increasing) (Easy)
7. [Repeated Substring Pattern](https://www.internhack.in/learn/dsa/problem/repeated-substring-pattern) (Easy)
8. [Sort Array By Parity](https://www.internhack.in/learn/dsa/problem/sort-array-by-parity) (Easy)
9. [Subtree of Another Tree](https://www.internhack.in/learn/dsa/problem/subtree-of-another-tree) (Easy)
10. [Two Sum](https://www.internhack.in/learn/dsa/problem/two-sum) (Easy)
11. [Valid Palindrome II](https://www.internhack.in/learn/dsa/problem/valid-palindrome-ii) (Easy)
12. [Valid Parentheses](https://www.internhack.in/learn/dsa/problem/valid-parentheses) (Easy)
13. [3Sum Closest](https://www.internhack.in/learn/dsa/problem/3sum-closest) (Medium)
14. [Accounts Merge](https://www.internhack.in/learn/dsa/problem/accounts-merge) (Medium)
15. [Best Time to Buy and Sell Stock II](https://www.internhack.in/learn/dsa/problem/best-time-to-buy-and-sell-stock-ii) (Medium)
16. [Clone Graph](https://www.internhack.in/learn/dsa/problem/clone-graph) (Medium)
17. [Course Schedule](https://www.internhack.in/learn/dsa/problem/course-schedule) (Medium)
18. [Design a Stack With Increment Operation](https://www.internhack.in/learn/dsa/problem/design-a-stack-with-increment-operation) (Medium)
19. [Find Peak Element](https://www.internhack.in/learn/dsa/problem/find-peak-element) (Medium)
20. [Generate Parentheses](https://www.internhack.in/learn/dsa/problem/generate-parentheses) (Medium)
21. [Group Anagrams](https://www.internhack.in/learn/dsa/problem/group-anagrams) (Medium)
22. [Interleaving String](https://www.internhack.in/learn/dsa/problem/interleaving-string) (Medium)
23. [Jump Game II](https://www.internhack.in/learn/dsa/problem/jump-game-ii) (Medium)
24. [Kth Largest Element in an Array](https://www.internhack.in/learn/dsa/problem/kth-largest-element-in-an-array) (Medium)
25. [Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit](https://www.internhack.in/learn/dsa/problem/longest-continuous-subarray-with-absolute-diff-less-than-or-equal-to-limit) (Medium)
26. [Longest Palindromic Substring](https://www.internhack.in/learn/dsa/problem/longest-palindromic-substring) (Medium)
27. [Longest Substring Without Repeating Characters](https://www.internhack.in/learn/dsa/problem/longest-substring-without-repeating-characters) (Medium)
28. [LRU Cache](https://www.internhack.in/learn/dsa/problem/lru-cache) (Medium)
29. [Matchsticks to Square](https://www.internhack.in/learn/dsa/problem/matchsticks-to-square) (Medium)
30. [Maximal Square](https://www.internhack.in/learn/dsa/problem/maximal-square) (Medium)
31. [Meeting Rooms II](https://www.internhack.in/learn/dsa/problem/meeting-rooms-ii) (Medium)
32. [Merge Intervals](https://www.internhack.in/learn/dsa/problem/merge-intervals) (Medium)
33. [Minimize Maximum Pair Sum in Array](https://www.internhack.in/learn/dsa/problem/minimize-maximum-pair-sum-in-array) (Medium)
34. [Nearest Exit from Entrance in Maze](https://www.internhack.in/learn/dsa/problem/nearest-exit-from-entrance-in-maze) (Medium)
35. [Number of Islands](https://www.internhack.in/learn/dsa/problem/number-of-islands) (Medium)
36. [Open the Lock](https://www.internhack.in/learn/dsa/problem/open-the-lock) (Medium)
37. [Partition Equal Subset Sum](https://www.internhack.in/learn/dsa/problem/partition-equal-subset-sum) (Medium)
38. [Pow(x, n)](https://www.internhack.in/learn/dsa/problem/powx-n) (Medium)
39. [Reorganize String](https://www.internhack.in/learn/dsa/problem/reorganize-string) (Medium)
40. [Restore the Array From Adjacent Pairs](https://www.internhack.in/learn/dsa/problem/restore-the-array-from-adjacent-pairs) (Medium)
41. [Rotting Oranges](https://www.internhack.in/learn/dsa/problem/rotting-oranges) (Medium)
42. [Set Matrix Zeroes](https://www.internhack.in/learn/dsa/problem/set-matrix-zeroes) (Medium)
43. [Shortest Unsorted Continuous Subarray](https://www.internhack.in/learn/dsa/problem/shortest-unsorted-continuous-subarray) (Medium)
44. [Sort Colors](https://www.internhack.in/learn/dsa/problem/sort-colors) (Medium)
45. [Spiral Matrix](https://www.internhack.in/learn/dsa/problem/spiral-matrix) (Medium)
46. [Time Based Key-Value Store](https://www.internhack.in/learn/dsa/problem/time-based-key-value-store) (Medium)
47. [Top K Frequent Elements](https://www.internhack.in/learn/dsa/problem/top-k-frequent-elements) (Medium)
48. [Top K Frequent Words](https://www.internhack.in/learn/dsa/problem/top-k-frequent-words) (Medium)
49. [Walls and Gates](https://www.internhack.in/learn/dsa/problem/walls-and-gates) (Medium)
50. [Word Search](https://www.internhack.in/learn/dsa/problem/word-search) (Medium)
51. [Binary Tree Cameras](https://www.internhack.in/learn/dsa/problem/binary-tree-cameras) (Hard)
52. [Concatenated Words](https://www.internhack.in/learn/dsa/problem/concatenated-words) (Hard)
53. [Design Skiplist](https://www.internhack.in/learn/dsa/problem/design-skiplist) (Hard)
54. [Earliest Possible Day of Full Bloom](https://www.internhack.in/learn/dsa/problem/earliest-possible-day-of-full-bloom) (Hard)
55. [Integer to English Words](https://www.internhack.in/learn/dsa/problem/integer-to-english-words) (Hard)
56. [Merge k Sorted Lists](https://www.internhack.in/learn/dsa/problem/merge-k-sorted-lists) (Hard)
57. [Minimum Window Subsequence](https://www.internhack.in/learn/dsa/problem/minimum-window-subsequence) (Hard)
58. [Reconstruct Itinerary](https://www.internhack.in/learn/dsa/problem/reconstruct-itinerary) (Hard)
59. [Sudoku Solver](https://www.internhack.in/learn/dsa/problem/sudoku-solver) (Hard)
60. [Word Ladder](https://www.internhack.in/learn/dsa/problem/word-ladder) (Hard)

## Prepare for the rest of the Ebay 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)
- [Yandex](https://www.internhack.in/learn/dsa/companies/yandex) (134)
- [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)

## Related

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