Challenge Library
Coding Challenges
5,893 curated questions across every arena — browse by topic, then jump into a live 3-minute battle to put them to the test.
Filter by type
Filter by difficulty
Popular topics
345 challenges matching your filters
- Code AnalysisHard
Shift Overflow
code-analysisClanguage - Code AnalysisHard
Struct Sizeof
code-analysisClanguage - Code AnalysisHard
Switch Fall-through
code-analysisClanguage - Code AnalysisHard
Type Promotion
code-analysisClanguage - Code AnalysisHard
Unsigned Underflow
code-analysisClanguage - Code AnalysisHard
XOR Swap Same
code-analysisClanguage - Code AnalysisHard
Dangling string_view from temporary
cppstring_viewdanglingcode-analysis - Code AnalysisHard
Pessimizing std::move on return
cppmove-semanticsrvoanti-pattern - Code AnalysisHard
shared_ptr reference cycle
cppsmart-pointersshared_ptrmemory-leak - Code AnalysisHard
Cross-TU static init order
cppstatic-initodrundefined-behavior - Code AnalysisHard
Lifetime extension of temporary subobject binding
cppreferenceslifetimetemporary - Code AnalysisHard
Missing std::forward loses rvalueness
cpptemplatesperfect-forwardingstd-forward - Code AnalysisHard
Exception-unsafe member update
cppexception-safetycode-analysis - Code AnalysisHard
static_cast vs dynamic_cast downcast
cppcastingundefined-behaviorcode-analysis - Code AnalysisHard
Relaxed store publish bug
cppatomicsmemory-ordercode-analysis - Code AnalysisHard
initializer_list in emplace_back
cppstlemplacebraced-init - Code AnalysisHard
Self-deadlock non-recursive mutex
cppthreadingmutexdeadlock - Code AnalysisHard
Lifetime extension of returned-by-value ref
cppreferenceslifetimetemporary - Code AnalysisHard
Lambda in loop capturing by reference
cpplambdacapturegotcha - Code AnalysisHard
string_view elements dangle
cppstring_viewdanglinglifetime - Code AnalysisHard
Header function missing inline
cppodrinlinelinker - Code AnalysisHard
weak_ptr use_count check is racy
cppsmart-pointersweak_ptrthread-safety - Code AnalysisHard
Forwarding reference deduction
cpptemplatesforwarding-referencecode-analysis - Code AnalysisHard
decltype(auto) vs auto
cppautodecltypetype-deduction - Code AnalysisHard
Use-after-move of a std::string argument
use-after-movestringrvalue - Code AnalysisHard
Strict aliasing violation through reinterpret_cast
strict-aliasingreinterpret-castub - Code AnalysisHard
Uninitialized read causing sanitizer failure
uninitializedsanitizerub - Code AnalysisHard
Condition variable lost wakeup with a missing lock
condition-variableracelost-wakeup - Code AnalysisHard
seqlock torn read output
seqlockdata-racecode-analysis - Code AnalysisHard
ADL swap recursion output
ADLname-lookupcode-analysis - Code AnalysisHard
friend injection capture output
friend-injectionmetaprogrammingcode-analysis - Code AnalysisHard
constexpr virtual dispatch output
constexprvirtualcode-analysis - Code AnalysisHard
dependent name template disambiguation output
two-phase-lookuptemplate-disambiguationcode-analysis - Code AnalysisHard
Lock-Free Stack ABA Root Cause
lock-freeabacas - Code AnalysisHard
Hazard Pointer Ordering Bug
hazard-pointersmemory-orderrace - Code AnalysisHard
Static Init Order Fiasco
static-initodrtranslation-unit - Code AnalysisHard
concept subsumption ordering
conceptssubsumptionoverload-resolution - Code AnalysisHard
False sharing counter struct
false-sharingcache-lineperformance - Code AnalysisHard
Reference dangling after vector realloc
dangling-referenceoperator[]UB - Code AnalysisHard
Broken comparator strict weak ordering
comparatorstrict-weak-orderingalgorithm - Code AnalysisHard
noexcept move prevents copy fallback
noexceptvectorreallocation - Code AnalysisHard
Custom hash specialization misuse
hashunordered_mapspecialization - Code AnalysisHard
Trace: Predictable Token
cybersecanalysishard - Code AnalysisHard
Trace: Insecure Deserialization
cybersecanalysishard - Code AnalysisHard
Trace: Timing-Safe Compare
cybersecanalysishard - Code AnalysisHard
Trace: Merge Two Sorted
dsaanalysishard - Code AnalysisHard
Trace: Apply Method
dsaanalysishard - Code AnalysisHard
Trace: Async Return Type
dsaanalysishard - Code AnalysisHard
Trace: Bind Partial
dsaanalysishard - Code AnalysisHard
Trace: Closure Factory
dsaanalysishard - Code AnalysisHard
Trace: Object Coercion
dsaanalysishard - Code AnalysisHard
Trace: Destructure Defaults
dsaanalysishard - Code AnalysisHard
Trace: Event Loop Order
dsaanalysishard - Code AnalysisHard
Trace: For-Of Loop
dsaanalysishard - Code AnalysisHard
Trace: Generator Yield*
dsaanalysishard - Code AnalysisHard
Trace: Var Hoisting
dsaanalysishard - Code AnalysisHard
Trace: MAX_SAFE_INTEGER
dsaanalysishard - Code AnalysisHard
Trace: Promise.race
dsaanalysishard - Code AnalysisHard
Trace: Sort Compare
dsaanalysishard - Code AnalysisHard
Trace: This in Global
dsaanalysishard
Practice now, dominate the arena
Every challenge here is drawn from the live Code Royale pool. Review a question, then head to the arena to answer under pressure against a real opponent — 3-minute matches, Elo ranking, and badge tiers on the line.