eBay Interview Experience | Software Engineer | Offer ✅
I recently went through eBay's interview process (4 rounds) and got the offer. Sharing the questions so they help others preparing.
Round 1: DSA
- Find the diameter of a binary tree.
- Given an array of integers, find the number of distinct pairs whose sum equals k.
Round 2: DSA (CodeSignal live coding)
Validate an integer string written the way the Ada programming language allows. A string is valid if it is either:
• A plain decimal number (digits 0-9, at least one digit), or
• A based number like base#digits#, where the base is 2 to 16 (written in decimal) and the digits are valid for that base (a-f / A-F for 10-15).
• Underscores _ can appear in either form as separators and should be ignored.
Examples:
• "123_456_789" → true
• "16#123abc#" → true
• "10#123abc#" → false (a, b, c aren't valid base-10 digits)
Round 3: DSA + System Design
• Given a string like "this is a tweet! #awesome #lovingit", return all the hashtag words → ["awesome", "lovingit"].
• HLD: Design a URL shortener, with deep dives on the encoding approach (Base62, hashing vs counter-based IDs, collision handling).
Round 4: CS Fundamentals
Mostly OS and networking questions.


