Top 50
Topic roadmap
Updated weekly · Last refresh Nov 1

Top 50 comparison Interview Questions

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

50questions
~12htotal time
85companies covered
Track your progressSign up free to work through all 50 questions and resume where you left off.
Start practicing free →
1
CodingStart here. 26 questions + 2 drills · ~386 min
Identical Binary TreesEasy
Practice
Recently asked

Determine whether two binary trees have identical structure and values using recursive tree traversal.

comparisonTreesUSTOOdooHopper
Signed vs Unsigned C OutputHard
Practice
Recently asked

Determine C's mixed signed unsigned output, explain integer promotions, and propose a type-safe correction.

c/c++code analysiscompiler optimizationAMD Construction GroupAMD
Compare Version NumbersMedium
Practice
Recently asked

Compare dotted version strings numerically, ignoring leading zeros and missing trailing zero components.

Arraysstring manipulationcomparisonSumo LogicArista Networks
Permutation Check for Two StringsEasy
Practice

Use character frequency counting to determine whether two PlayStation strings are permutations in linear time.

comparisonPlayStationPoshmark
Check Sorted Software VersionsMedium
Practice
Recently asked

Determine whether version strings are numerically sorted using component-wise comparison.

ArraysSortingArray ManipulationChimeGeneral Motors Of Canada
Compare Keys Across JSONMedium
Practice
Recently asked

Parse two JSON objects and return sorted keys whose values differ or whose key exists in only one object.

CodingcomparisonAlgorithmsIBM
Differing JSON KeysHard
Practice
Recently asked

Compare nested JSON objects and return sorted JSON Pointer paths whose values differ.

string manipulationcomparisonIBM
Greater vs Smaller CountsEasy
Practice
Recently asked

Use a single pass to compare counts of values above and below a target threshold.

comparisonCapital One
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
Balanced Parentheses CodingEasy
Practice
Practice drill

Use a recursive CTE to determine whether each stored string has balanced parentheses, including empty and NULL inputs.

Codingnull handlingData ManipulationStripe
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
SQL & Data Manipulation6 questions · ~84 min
More SQL & Data Manipulation questions with a free account
3
Technical Fundamentals5 questions · ~70 min
More Technical Fundamentals questions with a free account
4
Behavioral & Leadership4 questions · ~56 min
More Behavioral & Leadership questions with a free account
5
More topics9 questions · ~127 min
More questions with a free account
The finish line: interview-readyComplete all 50 questions plus 2 hands-on drills to finish this plan.