C++
0 of 12 solved
12 questions
- const correctness: const member functions and mutableconst and referencesEasyConceptual
- Shape areas with an abstract base class and virtual functionsPolymorphism and virtual functionsEasyCoding
- References vs pointers in C++ReferencesEasyConceptual
- Top k most frequent words with unordered_map and a custom sortSTL maps and sortingEasyCoding
- Function overloading vs templates: how does a template become code?TemplatesMediumConceptual
- RAII and smart pointers: unique_ptr, shared_ptr and weak_ptrMemory managementMediumConceptual
- How do virtual functions work, and why do base classes need a virtual destructor?PolymorphismMediumConceptual
- Design a stack that returns its minimum in O(1)Classes and STL containersMediumCoding
- vector vs list vs deque, and iterator invalidationSTL containersMediumConceptual
- Merge k sorted lists with a priority_queueHeaps and priority_queueMediumCoding
- Count distinct values in every window of size kHashing and sliding windowMediumCoding
- Copy constructor, deep vs shallow copy, and the rule of three / five / zeroObject lifetimeHardConceptual
