Questions
Read the code, predict what happens, then see why. Hand-written questions on C++, Rust, and the systems underneath them.
- A branch that's almost always takenMedium
- Arithmetic around an opaque function callMedium
- Supply the missing move-assignment operatorMedium
- A match over an enum that omits one variantMedium
- A volatile flag used for a producer/consumer handoffMedium
- False positives and false negatives in a Bloom filterEasy
- Index lookup in a rope built by repeated appendsMedium
- Linear probing vs. separate chaining at 90% loadMedium
- Two nodes pointing at each otherMedium
- Non-template vs. template overload resolutionHard
- A coroutine taking a const std::string& parameterHard
- Overloads constrained by Integral and SignedIntegralHard
- Copying a std::pmr::vector built on an arenaHard
- A hand-rolled spinlock built on std::atomic_flagMedium
- TLS 1.3 0-RTT early data on a resumed sessionMedium
- Two atomic counters on the same cache lineMedium
- Relaxed fetch_add operations between a release store and an acquire loadHard
- while let with Vec::pop as the scrutineeMedium
- Returning a string_view from a function taking const std::string&Hard
- TIME_WAIT and ephemeral ports under high connection churnHard
1–20 of 546
Page 1 of 28