← All questions
MediumCoding
Valid Sudoku
Asked at
PayPal
1Give yourself 5 minutes
2Answer out loud, not in your head
3Then compare with the answer below
0
Stuck? Show a way to structure it+
- 01Scan each filled cell once.
- 02Compute row, column, and box identifiers.
- 03Reject if a digit already appears in any corresponding set.
- 04Insert the digit into all three structures.
Reference answer
Then expect these follow-ups
How would bitmasks replace sets?
Tests: bit operations
Why are rows and columns alone insufficient?
Tests: constraints
Hiring now
PayPal has 254 open roles right now
landed applies to roles like these for you, on each company’s own site, with answers written for the role.
Get 5x interviews10 free auto-applies. No card.
Sr Software Engineer
Bangalore, Karnataka, India
Sr Software Engineer (Full Stack – React / Node.js / Java)
Bangalore, Karnataka, India
Software Engineer
Scottsdale, Arizona, United States of America
Next question