Day 1-Getting Started with DSA (Striver A2Z Sheet)

Today marks the beginning of my placement preparation journey. I started working through the Striver A2Z 455 DSA sheet in C++. My focus for Day 1 was building a strong foundation in basic programming concepts and pattern problems.
Topics Covered:
C++ Basics:
Data types
If-else, switch (including break and default)
Loops: while, do-while (ensures at least one execution), and for loop
Variable scope (
i
inside and outside loops)Functions:
Void vs return type
Parameterised vs non-parameterised
Pass by value (copy) vs pass by reference (
&
)
Function optimization: use of
break
andcontinue
inside loops
Time and Space Complexity:
Big-O Notation
3 Rules of Time Complexity
Understanding auxiliary space and input space
Pattern Programming:
Followed the 4-step strategy:
Analyze number of rows (outer loop)
Analyze number of columns (inner loop)
Identify the relation between them. Determine what to print
(Optional) Apply symmetry check
Solved 22 pattern problems from the Striver sheet
Theory
No theory topics were covered today. I plan to begin with OS/DBMS/CN theory from Day 2.
Subscribe to my newsletter
Read articles from Siddharth Gandhi directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
