Top 50 comparison Interview Questions
The most frequently asked comparison questions across all roles and companies, ranked by real interview frequency. Updated daily.
Determine whether two binary trees have identical structure and values using recursive tree traversal.
USTOOdoo
HopperDetermine C's mixed signed unsigned output, explain integer promotions, and propose a type-safe correction.
AMD Construction Group
AMDCompare dotted version strings numerically, ignoring leading zeros and missing trailing zero components.
Sumo Logic
Arista NetworksUse character frequency counting to determine whether two PlayStation strings are permutations in linear time.
PlayStation
PoshmarkDetermine whether version strings are numerically sorted using component-wise comparison.
Chime
General Motors Of CanadaParse two JSON objects and return sorted keys whose values differ or whose key exists in only one object.
IBMCompare nested JSON objects and return sorted JSON Pointer paths whose values differ.
IBMUse a single pass to compare counts of values above and below a target threshold.
Capital OneFind each array's second-largest distinct value and determine whether input numbers are powers of two in PostgreSQL.
VirtusaUse a recursive CTE to determine whether each stored string has balanced parentheses, including empty and NULL inputs.
StripeSign up to see every question
Create a free account to unlock this list and practice real interview questions.