📰 Dev.to · Nithya Dharshini official
Articles from Dev.to · Nithya Dharshini official · 30 articles · Updated every 3 hours · View all reads
All
⚡ AI Lessons (10119)
ArXiv cs.AIDev.to · FORUM WEBForbes InnovationDev.to AIOpenAI NewsHugging Face Blog

Dev.to · Nithya Dharshini official
1w ago
Cracking "Duplicate Zeros" with 0ms Runtime
Just hit that 0ms (100th percentile) milestone on LeetCode! Here is a quick breakdown of how to solve...

Dev.to · Nithya Dharshini official
2w ago
Partition Labels – Greedy + Two Pointer Thinking
This problem looks confusing at first… “Split the string so each character appears in only one...

Dev.to · Nithya Dharshini official
3w ago
Two Sum IV – Input is a BST (Two Pointer Approach)
We already know the classic Two Sum problem on arrays. But what if the data is inside a Binary...

Dev.to · Nithya Dharshini official
3w ago
Remove Duplicates from Sorted Array II (LeetCode 80) — Simple Explanation
This problem is a great extension of the basic two-pointer technique. Problem...

Dev.to · Nithya Dharshini official
1mo ago
Understanding Prefix Sum with a Practical Example (Pocket Money Tracker)
Prefix Sum is a simple but powerful technique used in many array problems instead of recalculating...

Dev.to · Nithya Dharshini official
1mo ago
Battery Optimization Mode – A Custom Sliding Window Problem(Real World Example)
Problem Smart glasses run heavy processing tasks like real-time navigation or object...

Dev.to · Nithya Dharshini official
1mo ago
Sliding Window on a Circular Array — Defuse the Bomb (LeetCode 1652)
Today I solved an interesting Sliding Window problem on a circular array.This problem helped me...

Dev.to · Nithya Dharshini official
1mo ago
Understanding Happy Number (LeetCode 202) – HashSet + Cycle Detection
Today I solved a classic problem that looks simple but teaches an important concept: cycle detection...

Dev.to · Nithya Dharshini official
1mo ago
From Prefix Array to Clean Variables – LeetCode 1732 (Find the Highest Altitude)
Today I solved a simple but important prefix-sum type problem. Problem Summary A biker starts at...

Dev.to · Nithya Dharshini official
1mo ago
Mastering Fixed Sliding Window in C++ (LeetCode 1876)
Today I solved a beautiful Sliding Window problem that perfectly demonstrates how fixed-size...

Dev.to · Nithya Dharshini official
1mo ago
Sliding Window in Action — Solving “Grumpy Bookstore Owner” Step by Step
Sliding Window makes sense only when you see it working in a real problem. This problem is a great...

Dev.to · Nithya Dharshini official
2mo ago
Squares of a Sorted Array — Understanding the Two Pointer Trick
This problem looks simple at first, but it hides a classic two-pointer pattern. Let’s break it...

Dev.to · Nithya Dharshini official
2mo ago
Sliding Window in Arrays — A Beginner’s Mental Model
When I first heard Sliding Window, my confusion was: Why not recalculate every time? Which element...

Dev.to · Nithya Dharshini official
2mo ago
Intersection of Two Linked Lists — My First Working Approach
When I first solved LeetCode 160: Intersection of Two Linked Lists, I focused on understanding what...

Dev.to · Nithya Dharshini official
2mo ago
Move Zeroes — Understanding the Read & Write Pointer Pattern (C++)
When I first solved “Move Zeroes”, I didn’t struggle with the code — I struggled with understanding...

Dev.to · Nithya Dharshini official
2mo ago
Finding the Second Largest Element — From Data Structures to Optimal Thinking
This problem looks simple, but it quietly tests pattern selection. Here’s how I approached it — and...

Dev.to · Nithya Dharshini official
2mo ago
Finding the Missing Number — What I Tried vs What I Learned About Optimal Patterns
When solving the Missing Number problem, I didn’t jump to the optimal solution immediately. Instead,...

Dev.to · Nithya Dharshini official
2mo ago
Contains Duplicate II
From Brute Force to Index-Based Frequency Thinking At first glance, Contains Duplicate II...

Dev.to · Nithya Dharshini official
2mo ago
Two Sum II (Sorted Array) — My First Clean Two Pointer Win
After struggling with pointer movement logic in earlier problems, Two Sum II finally felt…...

Dev.to · Nithya Dharshini official
2mo ago
Reverse Vowels of a String — What I Missed, What I Learned (Two Pointer Reflection)
When learning the Two Pointer technique, some problems don’t fail completely — they fail...

Dev.to · Nithya Dharshini official
2mo ago
Container With Most Water — Beginner Two Pointer Breakdown (That “Ohhh” Moment)
When I first saw Container With Most Water, I froze. The problem looked simple. The brute force was...

Dev.to · Nithya Dharshini official
2mo ago
Two Pointer for Beginners — Reverse an Array (In-Place)
When starting with the Two Pointer technique, one of the simplest and most important problems is...

Dev.to · Nithya Dharshini official
2mo ago
From Frequency Count to Two Pointer Technique: Level Up Your Array Skills 🚀
We are familiar with frequency counting — counting elements in arrays or strings using hash maps or...

Dev.to · Nithya Dharshini official
2mo ago
Sorting Elements by Frequency in C++ (Map vs Bucket Approach)
🧠 Problem Idea Given an array, sort elements by descending frequency and rebuild the array so...
DeepCamp AI