Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

Video Overview

  • Interview “signal” matters

    • assert > std::cout
  • What is assert?

    • #include <cassert>
    • assert(add(2, 3) == 5);
    • True → nothing
    • False → crash + line number
  • How to disable assert?

    • Compile with -DNDEBUG or #define NDEBUG
    • Asserts removed (zero cost)
  • Why it’s useful in interviews

    • Fewer chars!
    • Faster to debug - no manual checking (vs cout)
    • Shows correctness mindset (seniority)

Titles

  • This C++ Code Change Makes You a Senior Engineer

  • How do you show "signal" in C++ coding interviews?

  • C++ assert vs cout: Which Should You Use for Interviews?

  • The Best Way to Add "Tests" for C++ Code in Interviews

  • How to level up from Junior to Senior in C++ interviews?

References

  • ChatGPT and Gemini