Welcome to problem_solving_by_cpp 🚀
This repository is a collection of problem-solving solutions written in C++. Each file contains a clear solution to a specific problem, helping learners improve logic, coding skills, and familiarity with C++ tools including STL.
This repo is about practice, understanding, and growth — not just writing code.
- Build strong problem-solving skills using C++
- Practice algorithmic thinking and logic
- Apply C++ fundamentals and STL in real problems
- Prepare for exams, coding contests, and interviews
- Keep all practice code organized in one place
This repository is continually updated with new problems.
- C++ basics (loops, functions, conditions)
- STL usage (vector, map, set, stack, queue)
- Arrays and strings
- Searching techniques
- Sorting techniques
- Recursion problems
- Pattern printing
- Logical problem-solving
This repo focuses on clarity and understanding, not just code output.
problem_solving_by_cpp/
├── 2D_array.cpp
├── A_Add.cpp
├── A_Count.cpp
├── A_Print_Recursion.cpp
├── B_Print.cpp
├── C_Compare.cpp
├── C_Print_from_N_to_1.cpp
├── Count_Before_One.cpp
├── D_Print_Digits_using_Recursion.cpp
├── Difference_Array.cpp
├── Divisible_By_5_or_Not.cpp
├── Even_and_Odd.cpp
├── F_Reversing.cpp
├── Find_the_Missing_Number.cpp
├── G_Palindrome_Array.cpp
├── H_Sorting.cpp
├── I_Count_Vowels.cpp
├── Is_Palindrome.cpp
├── J_Factorial.cpp
├── K_Prime_Check.cpp
├── L_Sum_of_Digits.cpp
├── M_Largest_Number.cpp
├── N_Smallest_Number.cpp
├── O_Reverse_Number.cpp
├── P_Odd_Even_Sum.cpp
├── Q_Fibonacci.cpp
├── R_Pattern_Printing.cpp
├── S_Binary_to_Decimal.cpp
├── T_Decimal_to_Binary.cpp
├── U_Swap_Numbers.cpp
├── V_GCD_LCM.cpp
├── W_Count_Digits.cpp
├── X_Square_of_Number.cpp
├── Y_Cube_of_Number.cpp
├── Z_Other_Problems.cpp
├── README.md
Each file name corresponds to the problem it solves.
- Language: C++
- Compiler: GCC / G++ / MinGW
- Editor: VS Code / Code::Blocks / Any C++ IDE
- OS: Windows / Linux
- Clone the repository:
git clone https://github.com/Tauhidrana/problem_solving_by_cpp.git- Navigate to the repository folder:
cd problem_solving_by_cpp- Compile a program:
g++ filename.cpp -o filename- Run the program:
./filenameChange input values, modify code, and observe the results — that’s where real learning happens.
- Write readable, understandable code before optimization
- Learn C++ fundamentals while solving problems
- Practice consistently
- Learn from errors and debug actively
Problem-solving is skill built through repetition and understanding, not talent alone.
- Solutions focus on clarity, not micro-optimization
- Complexity will increase gradually as you progress
- This is a learning repository, not a production-level library
Contributions are welcome:
- Add new solved problems
- Improve readability and explanations
- Clean up logic for better clarity
If this repository helps you enhance your C++ problem-solving skills, give it a ⭐ on GitHub. It encourages continuous learning.
Keep coding, keep learning, and build logic that lasts. 💪🔥