Section
C++
A fast, no-surprises systems language — from references and RAII to the STL you will lean on in interviews and shipped code.
Latest in C++
Valid Parentheses
Decide whether a string of brackets is balanced. The classic stack warm-up — print "true" or "false" for one input per line.
kvi5hnuRAII and smart pointers: never leak again
RAII is the C++ idiom that ties a resource's lifetime to a stack object. Combined with unique_ptr, shared_ptr and weak_ptr, it eliminates whole classes of leaks and dangling pointers.
kvi5hnu2 minReferences vs pointers in modern C++
A reference is a safer, cleaner default than a pointer in most places you used to pass a pointer. Here is a decision guide for picking between the two in modern C++.
kvi5hnu3 min