Top 50 logic Interview Questions
The most frequently asked logic questions across all roles and companies, ranked by real interview frequency. Updated daily.
Process signed wallet transactions greedily, rejecting debits that would make the seller's balance negative.
Airwallex
Airwallex PtyDetermine whether a year is a leap year using divisibility rules for 4, 100, and 400.
Tech Mahindra
YochanaMap 5 to 6 and 6 to 5 using a constant-time arithmetic transformation without branching.
Palo Alto NetworksDemonstrate core Python fundamentals by sorting and merging overlapping intervals in linear time after sorting.
Palo Alto NetworksInfer a missing fruit price from an ordered arithmetic pricing progression using indexed lookup and validation.
EpicDetermine the three fastest horses among 25 using grouped races and candidate elimination.
Sprinklr
AdobeCount all axis-aligned squares in an n by n chessboard using a mathematical summation formula.
Tavant
ChargebeeGenerate a number's multiplication table from 1 through 10 using a simple loop.
SBSFind each array's second-largest distinct value and determine whether input numbers are powers of two in PostgreSQL.
VirtusaSign up to see every question
Create a free account to unlock this list and practice real interview questions.
