Design Patterns Guide: Singleton, Factory, Observer, Strategy & More

Essential design patterns for CS interviews — creational, structural, and behavioral patterns with C++ examples.

In this article

  • Concepts
  • Creational Patterns
  • Structural Patterns
  • Behavioral Patterns
  • Patterns in Robotics Stacks
  • Worked Example: One Delivery Robot, Six Patterns
  • When NOT to Use Patterns
  • Interview Angles
  • Practice
  • Further Reading