Skip to content

Clean C++ solutions for Algorithms & Problem-Solving Level 2. Focusing on modular programming, mathematical algorithms, digit manipulation, and building a reusable custom library (MyLib).

Notifications You must be signed in to change notification settings

Mohamed-Abdelrady-1/Algorithms-Problem-Solving-Level-2

Repository files navigation

Algorithms & Problem Solving - Level 2 Solutions

This repository contains my solutions for the Algorithms & Problem Solving Level 2 Course. In this level, the focus shifts from basic syntax to modular programming, mathematical algorithms, and building reusable libraries.

Key Technical Highlights

Unlike Level 1, this repository implements a professional software architecture:

  • Custom Library (MyLib): All reusable logic is encapsulated in a dedicated header file (MyLib.h) and source file (MyLib.cpp).
  • Modular Design: Separation of declarations (.h) and implementations (.cpp).
  • Pure Math Logic: Solving complex digit manipulation problems using arithmetic operators (%, /) without relying on string conversions.

Problem Sets Overview

1. Set 1: Math Algorithms & Digit Manipulation (Problems 1-10)

Deep dive into number theory, prime checks, and manipulating integers mathematically.

  • Key Problems: Multiplication Table, Prime/Perfect Numbers, Digit Frequency, Reversing Numbers.
  • Concepts: MyLib Integration, Nested Loops, Modulo Operator, Optimization Techniques.
  • Status: ✅ Completed

2. Set 2: Patterns, Randomness & Security (Problems 11-20)

Focuses on complex pattern generation, random number simulation, and basic security algorithms.

  • Key Problems: Palindromes, Inverted Patterns, Brute-Force Password Guessing, Text Encryption.
  • Concepts: Nested Loops, Randomness (srand/rand), String Manipulation, Security Logic.
  • Status: ✅ Completed

3. Set 3: Array Algorithms & Keys Generation (Problems 21-30)

Simulating random behavior, array filling, and generating secure keys.

  • Key Problems: Random Number Generator, Serial Key System, Array Filling, Prime Copying.
  • Concepts: Arrays, Randomness, Linear Search, Aggregation.
  • Status: ✅ Completed

4. Set 4: Array Algorithms & Manipulation (Problems 31-40)

(Upcoming) Advanced operations on arrays (shuffling, sorting, copying).

  • Key Problems: Array Shuffle, Copy distinct numbers, Palindrome Array.
  • Status: ⏳ In Progress

5. Set 5: Projects & Complex Systems (Problems 41-50)

(Upcoming) The final capstone projects will combine all learned concepts.

  • Key Problems: MySqrt, MyCeil, Dynamic Array Operations.
  • Status: ⏳ In Progress

🛠️ Tech Stack

  • Language: C++
  • IDE: Visual Studio
  • Architecture: Header Files (.h), Namespaces, Source Files (.cpp).

Developed by Mohamed Abdelrady - 2026

About

Clean C++ solutions for Algorithms & Problem-Solving Level 2. Focusing on modular programming, mathematical algorithms, digit manipulation, and building a reusable custom library (MyLib).

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages