A structured C++ problem-solving journey focused on programming fundamentals, logic building, functions, conditions, loops, arrays, validation, and practical algorithms.
Overview โข Roadmap โข All Problems โข Skills
This repository contains 50 C++ problem-solving exercises arranged as a progressive learning path. Each problem has its own folder and a dedicated source file so it is easy to study, run, compare, and revisit.
Learn โ Solve โ Compare โ Practice โ Improve
| ๐ Repository | Details |
|---|---|
| ๐งฉ Problems | 50 |
| ๐ป Language | C++ |
| ๐ Organization | One folder per problem |
| ๐ Alternative approaches | Kept separately when available |
| ๐งน File naming | Clean - separators |
| Range | Focus | Link |
|---|---|---|
| 01โ10 | Functions, input/output, structs, enums, arithmetic | Explore |
| 11โ20 | Averages, comparisons, swapping, geometry | Explore |
| 21โ30 | Validation, loops, odd/even, factorial, prime logic | Explore |
| 31โ40 | Powers, grades, commission, currency, calculator, billing | Explore |
| 41โ50 | Time, menus, letters, loans, ATM logic | Explore |
| # | Problem | Main concept | ๐ |
|---|---|---|---|
| 01 | Print Name | Functions and parameters | โถ View Code |
| 02 | Read And Print Name | Input, strings, functions | โถ View Code |
| 03 | Check Number Type | Enums, modulo, functions | โถ View Code |
| 04 | Employee Hiring Decision | Structs and conditions | โถ View Code |
| 05 | Employee Hiring With Recommendation | Structs and combined conditions | โถ View Code |
| 06 | Full Name With Reverse Option | Strings and conditional logic | โถ View Code |
| 07 | Half Number | Arithmetic and functions | โถ View Code |
| 08 | Pass Or Fail | Conditions and validation | โถ View Code |
| 09 | Sum Of Three Numbers | Parameters and arithmetic | โถ View Code |
| 10 | Average Of Three Numbers | Arithmetic and floating point | โถ View Code |
| # | Problem | Main concept | ๐ |
|---|---|---|---|
| 11 | Average And Pass Or Fail | Functions and conditions | โถ View Code |
| 12 | Maximum Of Two Numbers | Comparison and functions | โถ View Code |
| 13 | Maximum Of Three Numbers | Multi-value comparison | โถ View Code |
| 14 | Swap Two Numbers | Variables and swapping | โถ View Code |
| 15 | Rectangle Area | Geometry and arithmetic | โถ View Code |
| 16 | Rectangle Area By Side And Diagonal | Geometry and formulas | โถ View Code |
| 17 | Triangle Area | Geometry and formulas | โถ View Code |
| 18 | Circle Area By Radius | Geometry and pi |
โถ View Code |
| 19 | Circle Area By Diameter | Geometry and diameter/radius | โถ View Code |
| 20 | Circle Area Inscribed In A Square | Geometry and formulas | โถ View Code |
| # | Problem | Main concept | ๐ |
|---|---|---|---|
| 21 | Circle Area By Circumference | Geometry and formulas | โถ View Code |
| 22 | Circle Area Inscribed In An Isosceles Triangle | Geometry and formulas | โถ View Code |
| 23 | Circle Area Described Around A Triangle | Geometry and formulas | โถ View Code |
| 24 | Validate Age Once | Input validation | โถ View Code |
| 25 | Validate Age Until Valid | Loops and validation | โถ View Code |
| 26 | Print Numbers From 1 To N | for loops |
โถ View Code |
| 27 | Print Numbers From N To 1 | Reverse iteration | โถ View Code |
| 28 | Sum Odd Numbers From 1 To N | Conditions and accumulation | โถ View Code |
| 29 | Sum Even Numbers From 1 To N | Conditions and accumulation | โถ View Code |
| 30 | Factorial | Loops and multiplication | โถ View Code |
| # | Problem | Main concept | ๐ |
|---|---|---|---|
| 31 | Number Powers 2, 3 And 4 | Loops and powers | โถ View Code |
| 32 | Number Power M | General power calculation | โถ View Code |
| 33 | Grade Classification | Conditions and ranges | โถ View Code |
| 34 | Sales Commission | Business logic and conditions | โถ View Code |
| 35 | Currency Conversion | Arithmetic and input | โถ View Code |
| 36 | Simple Calculator | switch and operators |
โถ View Code |
| 37 | Sum Positive Numbers | Validation and accumulation | โถ View Code |
| 38 | Prime Number Check | Divisibility and loops | โถ View Code |
| 39 | Cash Remainder | Integer arithmetic | โถ View Code |
| 40 | Bill With Service Fee And Tax | Multi-step calculations | โถ View Code |
| # | Problem | Main concept | ๐ |
|---|---|---|---|
| 41 | Convert Hours To Weeks And Days | Unit conversion | โถ View Code |
| 42 | Task Duration In Seconds | Time conversion | โถ View Code |
| 43 | Convert Seconds To Days, Hours, Minutes, Seconds | Decomposition and conversion | โถ View Code |
| 44 | Week Day Menu | Menu and switch |
โถ View Code |
| 45 | Month Menu | Menu and switch |
โถ View Code |
| 46 | Print Letters A To Z | Character loops | โถ View Code |
| 47 | Loan Settlement In Months | Arithmetic and division | โถ View Code |
| 48 | Loan Installment By Months | Arithmetic and payment logic | โถ View Code |
| 49 | ATM PIN Check | Conditions and authentication logic | โถ View Code |
| 50 | ATM PIN With 3 Attempts | Loops and validation | โถ View Code |
| โ Functions | โ Structs | โ Enums | โ Conditions |
| โ Loops | โ Validation | โ Arrays | โ Strings |
| โ Arithmetic | โ Geometry | โ Menus | โ Basic Algorithms |
Algorithms-Problem-Solving-Level-1/
โ
โโโ Problem-01-Print-Name/
โ โโโ Solution-01.cpp
โ
โโโ Problem-02-Read-And-Print-Name/
โ โโโ Solution-01.cpp
โ
โโโ ...
โ
โโโ Problem-50-ATM-PIN-With-3-Attempts/
โ โโโ Solution-01.cpp
โ
โโโ README.md
When a problem has multiple approaches, they remain as separate files instead of overwriting each other. This makes comparison and review easier.
Folders and source files use clean - separators instead of spaces or unnecessary special characters. The result is simpler paths for GitHub, terminals, IDEs, and local compilation.
Read the problem โ Try it yourself โ Run your solution โ Compare alternatives โ Refactor โ Move to the next problem.
๐ Learn โข ๐ป Practice โข ๐ง Solve โข ๐ Build