A curated collection of algorithm implementations, data structures, and competitive programming solutions in Python and C.
python/— Python implementations focused on clean, idiomatic code.c/— Low-level C solutions emphasizing memory efficiency and pointer mechanics.
| # | Problem | Language | Solution | Source / Difficulty |
|---|---|---|---|---|
| 1 | Palindrome Checker | Python | palindrome_checker.py | LeetCode (Easy) |
| 2 | Anagram Checker | Python | anagram_checker.py | LeetCode (Easy) |
| 3 | Find The Parity Outlier | Python | find_outlier.py | Codewars (6 kyu) |
| 4 | Pete, the baker | Python | pete_the_baker.py | Codewars (5 kyu) |
| 5 | Product of Consecutive Fib Numbers | Python | product_fib.py | Codewars (5 kyu) |
| 6 | First Non-Repeating Character | Python | first_non_repeating_letter.py | Codewars (5 kyu) |
| 7 | Perimeter of Squares in a Rectangle | Python | perimeter_of_squares.py | Codewars (5 kyu) |
| 8 | Integers: Recreation One | Python | integers_recreation_one.py | Codewars (5 kyu) |
| 9 | Count IP Addresses | Python | ips_between.py | Codewars (5 kyu) |
| 10 | Range Extraction | Python | range_extraction.py | Codewars (4 kyu) |
| 11 | Next Bigger Number With The Same Digits | Python | next_bigger_number.py | Codewars (4 kyu) |
| 12 | Number of Trailing Zeros of N! | Python | number_of_trailing_zeros.py | Codewars (5 kyu) |
| 13 | Primes in Numbers | Python | primes_in_numbers.py | Codewars (5 kyu) |
| 14 | What's a Perfect Power anyway? | Python | whats_a_perfect_power_anyway.py | Codewars (5 kyu) |
| 15 | Calculating with Functions | Python | calculating_with_functions.py | Codewars (5 kyu) |
Clone the repository:
git clone https://github.com/Altay-Aksoy/algorithm-practice.git
cd algorithm-practiceRun any Python solution:
py python/palindrome_checker.py
py python/anagram_checker.py
py python/find_outlier.py
py python/pete_the_baker.py
py python/product_fib.py
py python/first_non_repeating_letter.py
py python/perimeter_of_squares.py
py python/integers_recreation_one.py
py python/ips_between.py
py python/range_extraction.py
py python/next_bigger_number.py
py python/number_of_trailing_zeros.py
py python/primes_in_numbers.py
py python/whats_a_perfect_power_anyway.py
py python/calculating_with_functions.py
Compile and run C solutions:
gcc c/solution_name.c -o solution
./solution