An open API service indexing awesome lists of open source software.

https://github.com/ahmed-maher77/programming-challenges__problem-solving

This is your all-in-one hub for mastering problem-solving through coding! This repository is a growing collection of challenges and solutions from various platforms such as Codewars, LeetCode, HackerRank, Edabit, and Codeforces—designed to strengthen your skills in JavaScript, TypeScript, and beyond.
https://github.com/ahmed-maher77/programming-challenges__problem-solving

codeforces codeforces-solutions codewars codewars-solutions hackerrank hackerrank-solutions javascript leetcode leetcode-solutions problem-solving programming-challenges programming-languages typescript

Last synced: 26 days ago
JSON representation

This is your all-in-one hub for mastering problem-solving through coding! This repository is a growing collection of challenges and solutions from various platforms such as Codewars, LeetCode, HackerRank, Edabit, and Codeforces—designed to strengthen your skills in JavaScript, TypeScript, and beyond.

Awesome Lists containing this project

README

          

# 🧠 Programming Challenges & Problem Solving

Welcome to your all-in-one hub for mastering problem-solving through coding! This repository is a growing collection of challenges and solutions from various platforms such as **Codewars**, **LeetCode**, **HackerRank**, **Edabit**, and **Codeforces**—designed to strengthen your skills in **JavaScript**, **TypeScript**, **C++**, and beyond.

---

## 📂 Project Structure

```
Programming-Challenges__Problem-Solving/

├── Leetcode-Challenges/ # solutions for LeetCode problems using different programming languages
├── Codeforces-Challenges/ # solutions for Codeforces problems using different programming languages
├── codewars-js/ # JavaScript solutions for Codewars problems
├── general-problem-solving/ # Other problems not tied to a specific platform
```

---

## ✨ What's Inside?

- ✅ Curated challenges with clear naming.
- 🧾 Well-commented solutions to explain logic.
- 🧠 Multiple approaches to the same problem where applicable.
- 🌐 Platform links for direct access to challenges.

---

## 🚀 Who Is This For?

Whether you're a beginner or a seasoned developer, this repository is for:

- 📚 Practicing algorithmic and data structure problems.
- 🧪 Preparing for technical interviews.
- 🛠️ Enhancing real-world problem-solving skills.

---

## 📘 Table of Contents

This table includes problems/challenges with their solutions:

| # | Challenge Name | Platform | Programming Language | Challenge Link | Solution Link [GitHub] |
| --- | ---------------------------------------------------- | ------------ | -------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 1 | Even or Odd | Codewars | JavaScript | Challenge | Solution |
| 2 | Sum of Positive | Codewars | JavaScript | Challenge | Solution |
| 3 | Sum without highest and lowest number | Codewars | JavaScript | Challenge | Solution |
| 4 | String repeat | Codewars | JavaScript | Challenge | Solution |
| 5 | Convert number to reversed array of digits | Codewars | JavaScript | Challenge | Solution |
| 6 | Counting Sheep | Codewars | JavaScript | Challenge | Solution |
| 7 | Opposite Number | Codewars | JavaScript | Challenge | Solution |
| 8 | Return Negative | Codewars | JavaScript | Challenge | Solution |
| 9 | Jenny's secret message | Codewars | JavaScript | Challenge | Solution |
| 10 | A Needle in the Haystack | Codewars | JavaScript | Challenge | Solution |
| 11 | Count of positives / sum of negatives | Codewars | JavaScript | Challenge | Solution |
| 12 | Double Char | Codewars | JavaScript | Challenge | Solution |
| 13 | Basic Mathematical Operations | Codewars | JavaScript | Challenge | Solution |
| 14 | RGB To Hex Conversion | Codewars | JavaScript | Challenge | Solution |
| 15 | Scrabble Score Challenge | Harvard-CS50 | TypeScript | Challenge | Solution |
| 16 | Find the most repeated word in the sentence | Codeforces | JavaScript | Challenge | Solution |
| 17 | Caesar Cipher Encryption | Harvard-CS50 | TypeScript | Challenge | Solution |
| 18 | Maximum Adjacent Pair Sum with Equal Largest Digit | Leetcode | C++ | Challenge | Solution |
| 19 | Median of Two Sorted Arrays — Merge-Based Approach | Leetcode | C++ | Challenge | Solution |
| 20 | Two Sum | Leetcode | C++, TypeScript | Challenge | Solution |
| 21 | Rotate Array | Leetcode | C++ | Challenge | Solution |
| 22 | Longest Palindrome by Concatenating Two Letter Words | Leetcode | C++ | Challenge | Solution |
| 23 | Max Pair Sum in an Array | Leetcode | C++ | Challenge | Solution |
| 24 | Minimum Pair Removal to Sort Array I | Leetcode | C++ | Challenge | Solution |
| 25 | Median of Two Sorted Arrays | Leetcode | C++ | Challenge | Solution |
| 26 | Container With Most Water | Leetcode | C++ | Challenge | Solution |
| 27 | Maximum Subarray | Leetcode | C++ | Challenge | Solution |
| 28 | Symmetric Tree | Leetcode | C++ | Challenge | Solution |
| 29 | Integer to Roman | Leetcode | JavaScript | Challenge | Solution |
| 30 | Longest Common Prefix | Leetcode | JavaScript | Challenge | Solution |
| 31 | Find Peak Element | Leetcode | JavaScript | Challenge | Solution |
| 32 | Search Insert Position | Leetcode | JavaScript | Challenge | Solution |
| 33 | Search a 2D Matrix | Leetcode | JavaScript | Challenge | Solution |
| 34 | Watermellon | Codeforces | C++ | Challenge | Solution |
| 35 | Boy or Girl | Codeforces | C++ | Challenge | Solution |
| 36 | Team | Codeforces | C++ | Challenge | Solution |
| 37 | Anton and Letters | Codeforces | C++ | Challenge | Solution |
| 38 | Sereja and Dima | Codeforces | C++ | Challenge | Solution |
| 39 | Books | Codeforces | C++ | Challenge | Solution |
| 40 | Pangram | Codeforces | C++ | Challenge | Solution |
| 41 | Xenia and Ringroad | Codeforces | C++ | Challenge | Solution |
| 42 | Sale | Codeforces | C++ | Challenge | Solution |
| 43 | System of Equations | Codeforces | C++ | Challenge | Solution |
| 44 | Points in Segments | Codeforces | C++ | Challenge | Solution |
| 45 | Diverse Team | Codeforces | C++ | Challenge | Solution |
| 46 | IQ Test | Codeforces | C++ | Challenge | Solution |
| 47 | Beautiful Matrix | Codeforces | C++ | Challenge | Solution |
| 48 | Vasya and String | Codeforces | C++ | Challenge | Solution |
| 49 | They Are Everywhere | Codeforces | C++ | Challenge | Solution |
| 50 | Cellular Network | Codeforces | C++ | Challenge | Solution |
| 51 | Petya and Strings | Codeforces | C++ | Challenge | Solution |
| 52 | Gravity Flip | Codeforces | C++ | Challenge | Solution |
| 53 | Anton and Danik | Codeforces | C++ | Challenge | Solution |
| 54 | Vanya and Fence | Codeforces | C++ | Challenge | Solution |
| 55 | Fence | Codeforces | C++ | Challenge | Solution |

---

## 🤝 Contributing

Want to contribute or add your own solutions?

1. Fork the repo
2. Create a new branch
3. Add your challenge + solution using the same naming structure
4. Open a PR (Pull Request)!

---

## 📜 License

This project is licensed under the [MIT License](LICENSE).

---

Happy coding! 💻