Skip to content

Latest commit

ย 

History

28 Commits

Folders and files

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

Repository files navigation

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

C++ 50 Problems Multiple Solutions 2 Projects

A practical C++ problem-solving journey focused on logic, functions, arrays, patterns, algorithms, and real console applications.

Overview โ€ข Problems โ€ข Projects โ€ข Skills


๐Ÿ“Œ Overview

This repository contains 50 C++ problem-solving exercises organized into separate folders, with alternative approaches preserved in separate source files whenever available.

The goal is simple: practice the problem, compare solutions, understand the logic, and build stronger C++ fundamentals.

๐Ÿ“Š Repository Details
๐Ÿงฉ Problems 50
๐Ÿ’ป Language C++
๐Ÿ” Alternative solutions Preserved separately
๐ŸŽฎ External projects 2
๐Ÿ“ Organization One folder per problem

๐Ÿงญ Quick Navigation

Section Focus Link
๐Ÿงฉ Problems 01โ€“10 Numbers, digits, frequency, basic logic Explore
๐Ÿ”ข Problems 11โ€“20 Palindrome, patterns, passwords, random values Explore
๐Ÿงฎ Problems 21โ€“30 Arrays, random data, copying, aggregation Explore
๐Ÿง  Problems 31โ€“40 Shuffling, searching, dynamic array practice Explore
๐Ÿ“ Problems 41โ€“50 Array checks and custom math functions Explore
๐ŸŽฎ Projects Complete console applications Explore

๐Ÿงฉ Problem Roadmap

Every problem has its own folder. โ–ถ View Code opens the main solution directly.

๐Ÿ”ข Problems 01โ€“10

# Problem Main concept Solutions ๐Ÿ”—
01 Multiplication Table From 1 To 10 Nested loops / formatted output 3 โ–ถ View Code
02 Print Prime Numbers From 1 To N Prime checking / loops 1 โ–ถ View Code
03 Perfect Number Check Divisors / summation 2 โ–ถ View Code
04 Print Perfect Numbers From 1 To N Reusable functions / loops 2 โ–ถ View Code
05 Print Digits In Reverse Order Digit extraction 1 โ–ถ View Code
06 Sum Of Digits % 10 / / 10 2 โ–ถ View Code
07 Reverse Number Number reversal 3 โ–ถ View Code
08 Digit Frequency Counting digits 1 โ–ถ View Code
09 All Digits Frequency Frequency counting 1 โ–ถ View Code
10 Reverse Number Then Print Digits Reversal + traversal 1 โ–ถ View Code

๐Ÿ”ข Problems 11โ€“20

# Problem Main concept Solutions ๐Ÿ”—
11 Palindrome Number Reversal / comparison 3 โ–ถ View Code
12 Inverted Number Pattern Nested loops / patterns 1 โ–ถ View Code
13 Inverted Number Pattern With Letters ASCII / nested loops 1 โ–ถ View Code
14 Inverted Letter Pattern Character patterns 1 โ–ถ View Code
15 Letter Pattern ASCII / patterns 1 โ–ถ View Code
16 Print Words From AAA To ZZZ Nested loops / combinations 2 โ–ถ View Code
17 Password Guessing Brute force / loops 1 โ–ถ View Code
18 Encrypt And Decrypt Text String manipulation / ASCII 1 โ–ถ View Code
19 Random Number From 1 To 10 Random number generation 1 โ–ถ View Code
20 Random Character Random character generation 1 โ–ถ View Code

๐Ÿงฎ Problems 21โ€“30

# Problem Main concept Solutions ๐Ÿ”—
21 Generate Keys Random generation / strings 2 โ–ถ View Code
22 Count Number Of Occurrences In Array Array searching / counting 1 โ–ถ View Code
23 Fill Array With Random Numbers Random arrays 1 โ–ถ View Code
24 Maximum Number In Array Array traversal 1 โ–ถ View Code
25 Minimum Number In Array Array traversal 1 โ–ถ View Code
26 Sum Of Array Elements Accumulation 1 โ–ถ View Code
27 Array Average Sum / division 1 โ–ถ View Code
28 Copy Array Array copying 1 โ–ถ View Code
29 Copy Only Prime Numbers Filtering arrays 1 โ–ถ View Code
30 Sum Of Two Arrays Parallel array processing 1 โ–ถ View Code

๐Ÿง  Problems 31โ€“40

# Problem Main concept Solutions ๐Ÿ”—
31 Shuffle Array Randomization / swapping 1 โ–ถ View Code
32 Copy Array In Reverse Order Reverse traversal 1 โ–ถ View Code
33 Generate Keys And Store Them In Array Strings / arrays 1 โ–ถ View Code
34 Search For Number In Array Linear search 1 โ–ถ View Code
35 Search For Number โ€” Boolean Check Boolean helper functions 1 โ–ถ View Code
36 Input User Numbers In Array User input / arrays 2 โ–ถ View Code
37 Copy Array Using AddArrayElement Reusable array helper 2 โ–ถ View Code
38 Copy Odd Numbers To A New Array Filtering / odd numbers 2 โ–ถ View Code
39 Copy Prime Numbers To A New Array Filtering / prime numbers 2 โ–ถ View Code
40 Copy Distinct Numbers To Array Duplicate detection 3 โ–ถ View Code

๐Ÿ“ Problems 41โ€“50

# Problem Main concept Solutions ๐Ÿ”—
41 Palindrome Array Symmetry / array comparison 2 โ–ถ View Code
42 Count Odd Numbers In Array Filtering / counting 1 โ–ถ View Code
43 Count Even Numbers In Array Filtering / counting 1 โ–ถ View Code
44 Count Positive Numbers In Array Conditions / counting 2 โ–ถ View Code
45 Count Negative Numbers In Array Conditions / counting 1 โ–ถ View Code
46 Custom ABS Function Functions / math 1 โ–ถ View Code
47 Custom Round Function Floating-point logic 1 โ–ถ View Code
48 Custom Floor Function Floating-point logic 1 โ–ถ View Code
49 Custom Ceil Function Floating-point logic 1 โ–ถ View Code
50 Custom Sqrt Function Math / pow() 1 โ–ถ View Code

๐ŸŽฎ Projects

These projects live in their own dedicated GitHub repositories rather than inside this problem-solving repository.

# Project Focus ๐Ÿ”—
01 ๐Ÿชจ๐Ÿ“„โœ‚๏ธ Rock Paper Scissors Game Game logic, enums, structs, random choices, rounds, result tracking โ–ถ Open Project
02 ๐Ÿงฎ Math Quiz Game Random questions, difficulty levels, operations, scoring, game flow โ–ถ Open Project

๐Ÿง  Core Skills

โœ… Functions โœ… Loops โœ… Arrays โœ… Strings
โœ… Enums โœ… Structs โœ… Random Numbers โœ… ASCII
โœ… Searching โœ… Filtering โœ… Array Manipulation โœ… Math Functions

๐Ÿ“ Repository Structure

Algorithms_and_Problem-Solving_level_2/
โ”‚
โ”œโ”€โ”€ Problem-01-.../
โ”‚   โ”œโ”€โ”€ My-Solution.cpp
โ”‚   โ””โ”€โ”€ Doctor-Solution.cpp
โ”‚
โ”œโ”€โ”€ Problem-02-.../
โ”‚   โ””โ”€โ”€ Solution-01.cpp
โ”‚
โ”œโ”€โ”€ ...
โ”‚
โ”œโ”€โ”€ Problem-50-Custom-Sqrt-Function/
โ”‚   โ””โ”€โ”€ Solution-01.cpp
โ”‚
โ””โ”€โ”€ README.md

๐Ÿ” Solution Naming

When a problem has more than one approach, the solutions remain separated, for example:

  • My-Solution.cpp
  • Doctor-Solution.cpp
  • Alternative-Solution.cpp
  • Solution-01.cpp

This makes it easy to compare approaches without overwriting the original solution.


๐Ÿงน Naming Convention

All organized folders and files use clean - separators instead of spaces or unnecessary special characters. This keeps paths simple for GitHub, terminals, and IDEs.


๐Ÿš€ Learning Path

Understand โ†’ Solve โ†’ Compare โ†’ Practice โ†’ Refactor

The repository is organized so you can solve each problem yourself first, then open the available alternatives and compare the logic and structure.


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

About

50+ C++ problems covering loops, functions, arrays, strings, searching, randomization, and mathematics.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages