~/companies / Citadel
Citadel problems
23 problems in the style reported for Citadel interviews and assessments, easy to hard. bossfight.dev isn't affiliated with Citadel.
0 of 23 solved
Start: Count schedules with no process in two slots in a row Timed mock
What the set leans on
Binary trees · 3 Intro DP · 2 Greedy with sorting · 2 Simulation · 2 BFS / multi-source BFS · 1 Bit manipulation (IP / CIDR) · 1 DFS and connected components · 1 Fenwick tree (BIT) · 1 Intervals / sweep line · 1 Iterators and generators · 1 Lock (mutex) · 1 LRU / LFU cache · 1 Prefix sums and difference arrays · 1 Recursion and backtracking · 1 Ring buffers and producer/consumer pipelines · 1 Sliding window · 1 Time-travel key-value store · 1 Fault-tolerant work queue · 1
- Count schedules with no process in two slots in a row Intro DP ~15 min easy
- Friend suggestions by mutual friends BFS / multi-source BFS ~15 min easy
- Refactor obfuscated legacy code Greedy with sorting ~15 min easy
- The first gap everyone shares Intervals / sweep line ~15 min easy
- Time-Based Key-Value Store Time-travel key-value store ~15 min medium
- Cheapest root-to-leaf path Binary trees ~20 min medium
- Count of Stable Subarrays Prefix sums and difference arrays ~25 min medium
- Distinct goodness values Bit manipulation (IP / CIDR) ~25 min medium
- Knight hops on a phone keypad Intro DP ~25 min medium
- Pandigital Sum Recursion and backtracking ~25 min medium
- 2048 moves and a 64-bit board encoding assessment 2 levels Simulation ~30 min medium
- Binary search tree from scratch Binary trees ~30 min medium
- Equal range search and sliding-window top K assessment 2 levels Sliding window ~40 min medium
- Merge K sorted streams assessment 2 levels Iterators and generators ~40 min medium
- Thread-safe per-key call counter assessment 3 levels Lock (mutex) ~40 min medium
- Game of Life: in place, then on an infinite board assessment 2 levels Simulation ~45 min medium
- Single-producer, multi-consumer ring buffer assessment 3 levels Ring buffers and producer/consumer pipelines ~50 min medium
- Round-robin task scheduler assessment 3 levels Fault-tolerant work queue ~60 min medium
- Candy for a line of children Greedy with sorting ~30 min hard
- Use every boarding pass exactly once DFS and connected components ~40 min hard
- Weighted random sampler with insert and remove Fenwick tree (BIT) ~45 min hard
- LRU, LFU, then a pluggable eviction policy assessment 3 levels LRU / LFU cache ~60 min hard
- N-ary tree sum and leaf next-links assessment 3 levels Binary trees ~60 min hard