PayPal Software Engineer interview: grid DFS, binary search and a verbal Top K Frequent Elements

PayPal·Software Engineer·Oct 2024
OnsiteTechnical ScreenOffer

Round 1: Technical coding and CS fundamentals (45 mins)

The first problem was similar to Number of Islands. It required DFS or BFS on a grid, with a focus on traversal logic, boundary conditions and visited tracking.

The second part was CS fundamentals:

  • Databases: normalization and indexing basics
  • Operating systems: processes vs threads, and scheduling basics

The interviewer was evaluating problem-solving and foundational clarity as well as coding.

Round 2: Coding round (45 mins)

  • First and Last Occurrence in a Sorted Array. I solved it with binary search and explained the left boundary search and the right boundary search. Time complexity is O(log n) and space complexity is O(1).
  • Climbing Stairs. I solved it with bottom-up dynamic programming and recognized it as a Fibonacci variation.

The expectations were clean logic, correct optimization and a clear explanation of complexity. The interviewer was satisfied with both solutions.

Round 3: Managerial round (45 mins)

This round covered three things:

  • A detailed discussion of my previous work at HPE, focused on design decisions, trade-offs and real-world impact.
  • Behavioral and situational questions, for example handling conflicts in a team, ownership scenarios and decision-making under constraints.
  • A verbal problem, Top K Frequent Elements. We discussed the approach without coding, with the focus on heap vs bucket sort reasoning and the trade-offs.

Verdict: I got an offer after 5 days.

Published

Curated and edited by PracHub

Discussion

Sign in to join the discussion. The author is notified of every comment.

Loading comments…

Interview at a glance

Company
PayPal
Role
Software Engineer
Rounds
Technical Screen → Onsite
Outcome
Offer
Interview date
Oct 2024

Related interview experiences

Explore more interview rounds, questions, and outcomes.

Browse interview experiences