Top 50
Topic roadmap
Updated weekly · Last refresh Nov 1

Top 50 cpp Interview Questions

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

50questions
~14htotal time
31companies covered
Track your progressSign up free to work through all 50 questions and resume where you left off.
Start practicing free →
1
CodingStart here. 44 questions · ~748 min
Refactor for Performance and ClarityHard
Practice

Refactor pairwise correlation computation by precomputing centered returns and exploiting matrix symmetry.

ArraysperformanceAlgorithmsBalyasny Asset ManagementBBack Market
LFU Cache ImplementationHard
Practice

Implement an LFU cache with O(1) average get and put operations, using frequency groups and LRU tie-breaking.

Data StructurescachecppEEnterpretApple
C++11 and C++14 FeaturesEasy
Practice
Recently asked

Normalize a candidate's C++ feature list, remove duplicates, and group features by the standard that introduced them.

CodingcompilationcppSiemens Digital Industries Software
Debug std::mutex UsageHard
Practice
Recently asked

Identify lock leaks, unsafe lock ordering, exception risks, and data races in Citadel's OrderBook implementation.

code analysisclean codec++Citadel
Undefined Behavior and Low-Level API DesignHard
Practice
Recently asked

Validate bounds, const-correctness, and overlapping typed accesses under simplified C++ aliasing rules.

Hash Tablescode analysisLinked ListsNVIDIA
Virtual Functions Output and FixesHard
Practice
Recently asked

Trace C++ polymorphism, object slicing, destruction, and multiple inheritance issues in a sensor hierarchy.

memory managementcode analysisabstractionZoox
Identify and Rewrite BugsHard
Practice
Recently asked

Identify iterator, bounds, empty-input, and memory bugs, then safely prune out-of-range Waymo obstacle readings.

code analysisArraysDebuggingWaymo
Pointer to Pointer OutputHard
Practice

Trace indirection and mutation to predict a C++ pointer-to-pointer program's output.

code analysispointerscppSiemens Digital Industries Software
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
Behavioral & Leadership4 questions · ~68 min
More Behavioral & Leadership questions with a free account
3
More topics2 questions · ~34 min
More questions with a free account
The finish line: interview-readyComplete all 50 questions to finish this plan.