Top 50
Topic roadmap
Updated weekly · Last refresh Nov 1

Top 50 logic Interview Questions

The most frequently asked logic questions across all roles and companies, ranked by real interview frequency. Updated daily.

50questions
~21htotal time
45companies covered
Track your progressSign up free to work through all 50 questions and resume where you left off.
Start practicing free →
1
CodingStart here. 49 questions + 1 drill · ~1230 min
Prevent Negative Seller BalanceMedium
Practice
Recently asked

Process signed wallet transactions greedily, rejecting debits that would make the seller's balance negative.

logicArraysAlgorithmsAirwallexAirwallex Pty
Leap Year LogicEasy
Practice
Recently asked

Determine whether a year is a leap year using divisibility rules for 4, 100, and 400.

logicBasic AlgorithmsAlgorithmsTech MahindraYochana
Return 5 for 6 Without If StatementsEasy
Practice
Recently asked

Map 5 to 6 and 6 to 5 using a constant-time arithmetic transformation without branching.

brain teaserlogiccoding challengePalo Alto Networks
Palo Alto Networks Technical FundamentalsMedium
Practice
Recently asked

Demonstrate core Python fundamentals by sorting and merging overlapping intervals in linear time after sorting.

logicCodingArraysPalo Alto Networks
Cost Word ProblemMedium
Practice
Recently asked

Infer a missing fruit price from an ordered arithmetic pricing progression using indexed lookup and validation.

logicProblem SolvingEpic
Top 3 Horses PuzzleMedium
Practice
Recently asked

Determine the three fastest horses among 25 using grouped races and candidate elimination.

brain teaserlogicArraysSprinklrAdobe
Chessboard Squares CountEasy
Practice

Count all axis-aligned squares in an n by n chessboard using a mathematical summation formula.

brain teasercombinatoricslogicTavantChargebee
Multiplication Tables ProgramEasy
Practice

Generate a number's multiplication table from 1 through 10 using a simple loop.

logiccoding challengeBasic AlgorithmsKKRANSBS
SQL and Simple Coding ProblemHard
Practice
Recently asked
Practice drill

Find each array's second-largest distinct value and determine whether input numbers are powers of two in PostgreSQL.

Codingdatabase queryingdata validationVirtusa
More Coding questions with a free account

Sign up to see every question

Create a free account to unlock this list and practice real interview questions.

Get my prep plan
2
More topics1 question · ~25 min
More questions with a free account
Hands-on SQL practiceWrite and run real queries in the editor. 1 drill · ~10 min
The finish line: interview-readyComplete all 50 questions plus 2 hands-on drills to finish this plan.