Skip to content

Latest commit

ย 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿงฉ Algorithms & Problem Solving โ€” Level 1

C++ 50 Problems Level 1 Last Commit

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


๐ŸŽฏ Overview

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

๐Ÿงญ Quick Navigation

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

๐Ÿ“š Roadmap

๐Ÿง  Problems 01โ€“10

# 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

๐Ÿ”ข Problems 11โ€“20

# 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

๐Ÿงฎ Problems 21โ€“30

# 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

๐Ÿง  Problems 31โ€“40

# 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

๐Ÿ•’ Problems 41โ€“50

# 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

๐Ÿง  Skills Covered

โœ… Functions โœ… Structs โœ… Enums โœ… Conditions
โœ… Loops โœ… Validation โœ… Arrays โœ… Strings
โœ… Arithmetic โœ… Geometry โœ… Menus โœ… Basic Algorithms

๐Ÿ“ Repository Structure

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

๐Ÿ” Solution Organization

When a problem has multiple approaches, they remain as separate files instead of overwriting each other. This makes comparison and review easier.

๐Ÿงน Naming Convention

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.


๐Ÿš€ Recommended Learning Flow

Read the problem โ†’ Try it yourself โ†’ Run your solution โ†’ Compare alternatives โ†’ Refactor โ†’ Move to the next problem.


๐Ÿ“˜ Learn โ€ข ๐Ÿ’ป Practice โ€ข ๐Ÿง  Solve โ€ข ๐Ÿš€ Build

About

50 C++ problem-solving exercises covering logic, loops, conditions, functions, and mathematical problem solving.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages