DEV Community

Ali Çimen
Ali Çimen

Posted on

Algoritma Practice in the Age of AI

We’re living in a time when AI can write code in seconds.
Yes, AI is an incredible assistant. But I believe that if we truly want to understand the algorithmic logic behind our code, optimize it effectively, and be able to ask questions like “How is this code affecting memory under the hood?”, we still need to write code ourselves and challenge our thinking—at least to some extent.

With that mindset, I asked AI to generate LeetCode-style algorithm problems focused on specific concepts to keep my problem-solving skills sharp, and I solved each of them manually, step by step.

My goal wasn’t simply to find a working solution, but to write clean and performant code while reducing Time Complexity wherever possible.
The main concepts I focused on were:

✔️ O(n) Time Complexity optimizations
✔️ Frequency management with Hash Maps
✔️ Two Pointers & In-place Array Manipulation

If you’re interested in seeing the code and the approaches I used to solve these problems, I’ve shared the repository below.
I’d love to hear your feedback! Code reviews, alternative approaches, and suggestions are always welcome.

🔗 [https://github.com/allicimen/Leetcode_Tarzi_Algoritmalar_Python]

Top comments (0)