Trees, Graphs & Search
Trees and binary search are the quiet middle of the PayPal loop. The object-modeling round is the differentiator, but these show up often enough that a shaky level-order walk or an off-by-one in a rotated search will end a screen that was going fine. The bar sits at a solid medium. Nothing here is exotic. What the loop checks is whether you can write a clean traversal, keep the boundary cases straight, and say why your indices are where they are.
Most of this cluster runs off one skeleton: a depth-first or breadth-first walk that remembers where it has been. A tree lets you drop the visited set, because it has no cycles and every node has one parent. A graph or a grid puts it back, since two paths can reach the same cell. Binary search is the odd one out, a different discipline, and it gets its own section below. It fails at PayPal in the places the hidden tests are built to catch: the empty input, the single element, the index one past the end.
- 3 problems, worked step by step
- about 25 min
Premium lessonPayPal interview guide
These took digging.
What candidates walked out with, from 20,000+ reports, forum threads behind logins and write-ups in Chinese. Then solved step by step.
100 companies. Checked every month.
Unlock all 100 companies$49 a year · less than $1 a week · Cancel anytime
PayPal interview guideKnow what PayPal asks before you walk in.
15 coding · 5 system design · 24 behavioral questions
Get their questions first.
InterviewLegend is independent and not affiliated with or endorsed by any company it covers.