Ebay Interview Question

Posted
15 Mar 2026
283 reads

Summary

I recently had an offline interview experience with Ebay. The 30-minute interview primarily focused on a single Data Structures & Algorithms problem, 'Reverse Pairs'.

How it went

Had an interesting offline interview experience recently.

The interview was scheduled for 30 minutes, and the focus was mainly on one DSA problem.

Questions asked (1)

  1. 01

    Reverse Pairs

    Data Structures & Algorithms

    Given an integer array nums, return the number of reverse pairs in the array.

    A reverse pair is defined as a pair (i, j) such that:
    • 0 <= i < j < nums.length
    • nums[i] > 2 * nums[j]

    Example:

    Input:
    nums = [1,3,2,3,1]

    Output:
    2

    Explanation:
    The reverse pairs are:
    • (1,4) → nums[1] = 3, nums[4] = 1, 3 > 2 * 1
    • (3,4) → nums[3] = 3, nums[4] = 1, 3 > 2 * 1

    Open the problem

How they prepared

If you are appearing for an eBay interview, make sure you have a solid grip on DSA and problem-solving.

Know someone preparing? Send it to them:WhatsAppLinkedInX

Interviewed at Ebay recently?

Write up your rounds while you still remember the questions. It helps the next person more than you would think.

Share your experience
Discussion 0

Questions for the author, or how your own interview compared.

Join the discussion

Sign in with Google to comment or ask the author a question.

No comments yet

Be the first to share your thoughts and start the discussion!