โ† PayPal questions

Count total valid next chess moves on an N*M board

Filed under PayPal

Given an N*M grid containing Bishops (B), Rooks (R), or Queens (Q), calculate the total number of unique valid moves for all pieces on the board. Pieces cannot move through or land on other pieces.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related PayPal questions

Collected from public candidate posts and coding forums. Updated Nov 2026.