Most people think this is a “simple” problem.
Reverse an array.
But there are actually two very different ways to think about it
Approach 1: Let Python do the work
arr::-1
That’s it.
Looks clean. Works instantly.
But under the hood:
In ...
When we start learning to code, we often get excited about solving problems that work. But as we move forward, writing code that just works isn’t enough, we also need to think about how well it works. That’s where time and space complexity1 come in.
...
Finding Loops in a Linked List: Why It Matters
If you’ve ever dealt with linked lists in data structures, you’ve probably come across the famous problem: “How do you find if a linked list has a loop?”
At first glance, it may feel like one of those...
What powers your browser history, undo/redo in apps, or navigation between screens?
Behind the scenes → it’s the Linked List.1
And there are two key types you should know: Singly and Doubly Linked List.
Singly Linked List SLL:
Each node = data + ...
Have you ever zoomed into a photo on your phone, shrunk an image before sending it on WhatsApp, or stretched a design to make it fit a screen?
That simple action is powered by scaling and in machine learning, it’s one of the most important transform...
Do you know how everyday apps like Spotify’s playlist display or Instagram’s photo grid rely on a simple concept called an array?
That’s right. Behind the scenes, this unassuming data structure1 powers how data is stored, retrieved, and displayed al...
Do you know what actually happens when you run an SQL query?
It’s not as simple as: “SQL just fetches rows from a table.”
Behind the scenes, your query goes through a step-by-step execution order and knowing this is often an interview question for ...
Imagine your interviewer asks for a queue but with a twist: you can only use stacks.
It’s actually a small shift in approach that reveals how data structure thinking and algorithmic trade offs make you a stronger engineer.
Read on, this one probl...
Everyone loves to talk about “training models”… but the real magic happens before you even touch the model. Let’s walk through the pipeline every ML project goes through, from messy spreadsheets to clean, ready to train data.
First Step is Understa...
Have you ever seen those Russian dolls, where one doll opens to reveal a smaller one inside, and then another smaller one, and so on? Recursion in programming is a bit like that. It’s when a function calls itself to solve a smaller piece of the probl...
When I was building my music app in Flutter, I began with the “quick and dirty” way of handling data. You know that vibe coding flow — fetch some JSON, dump it in a Map, and just wire it up to the UI. It felt fast at first, but it quickly turned into...
So here’s the story.
I was facing a technical debt kind of issue in my Flutter music app — my MusicPlaybackService was doing two jobs:
1. Talking to the audio engine audioservice + justaudio to play/pause/skip.
2. Acting like a ChangeNotifier to upd...
Imagine you’re building a music player app
You have:
A Play button on the player screen
A Mini Player at the bottom of the home screen
A Playlist screen showing all songs
Now… Flutter gives you multiple ways to manage data and update the UI.
Thr...
I hit a weird but common UI issue in my Flutter music player app:
Whenever I tapped the mini player to open the full screen player, the seek bar would flash 0:00 for a split second — and then jump to the actual current timestamp.
It looked like pla...