DEV Community

Alexander Kazanski profile picture

Alexander Kazanski

Senior frontend engineer with a passion for performance, clean architecture, and the kind of UI details users notice but can't explain. Writing about JavaScript, DSA, and building things that last.

Joined Joined on  github website twitter website
The Privacy Bug in Your Health App Isn't a Bug. It's the Architecture.

The Privacy Bug in Your Health App Isn't a Bug. It's the Architecture.

Comments
2 min read
Your Nutrition App Needs to Work in a Basement With No Signal

Your Nutrition App Needs to Work in a Basement With No Signal

Comments
2 min read
I Rebuilt My Habit Tracker's Core Logic as One Hook. Here's What I Learned.

I Rebuilt My Habit Tracker's Core Logic as One Hook. Here's What I Learned.

1
Comments
2 min read
Nobody Reads Your Chart When They're Worried About Their Blood Pressure

Nobody Reads Your Chart When They're Worried About Their Blood Pressure

Comments
2 min read
Your Health App's State Management Is Lying to You

Your Health App's State Management Is Lying to You

Comments
2 min read
Particle Swarm Optimization: Learning from the Intelligence of Motion

Particle Swarm Optimization: Learning from the Intelligence of Motion

Comments
3 min read
Grey Wolf Optimizer: Nature-Inspired Search for Better Solutions

Grey Wolf Optimizer: Nature-Inspired Search for Better Solutions

Comments
2 min read
Artificial Bee Colony: Nature-Inspired Optimization for Scheduling

Artificial Bee Colony: Nature-Inspired Optimization for Scheduling

Comments
2 min read
Sorting each word gives you a canonical key — two words with the same key are anagrams. This one-pass hash map groups them all in O(n·k).

Sorting each word gives you a canonical key — two words with the same key are anagrams. This one-pass hash map groups them all in O(n·k).

Comments
1 min read
BFS with a queue is the cleanest way to visit a tree level by level. Great for 'return nodes at depth k' problems — here's the template.

BFS with a queue is the cleanest way to visit a tree level by level. Great for 'return nodes at depth k' problems — here's the template.

Comments
1 min read
Reversing a linked list in-place is the most-asked linked list question. Three pointers, no extra memory — here's how it works.

Reversing a linked list in-place is the most-asked linked list question. Three pointers, no extra memory — here's how it works.

Comments
1 min read
Binary search cuts your search space in half every step — O(log n) instead of O(n). This template handles every sorted-array problem.

Binary search cuts your search space in half every step — O(log n) instead of O(n). This template handles every sorted-array problem.

Comments
1 min read
Balanced brackets are a classic interview warm-up — and a stack is the perfect tool. Here's the cleanest JS version I know.

Balanced brackets are a classic interview warm-up — and a stack is the perfect tool. Here's the cleanest JS version I know.

Comments
1 min read
Naive Fibonacci is a trap — it recalculates the same values millions of times. Add a memo object and you drop from O(2ⁿ) to O(n) instantly.

Naive Fibonacci is a trap — it recalculates the same values millions of times. Add a memo object and you drop from O(2ⁿ) to O(n) instantly.

Comments
1 min read
Bubble sort is O(n ) and nobody ships it — but understanding why it works makes every other sort click. Worth 5 minutes of your time.

Bubble sort is O(n ) and nobody ships it — but understanding why it works makes every other sort click. Worth 5 minutes of your time.

Comments
1 min read
Stop looping twice. Here's how a single hash map pass solves Two Sum in O(n) — the trick every interviewer expects you to know.

Stop looping twice. Here's how a single hash map pass solves Two Sum in O(n) — the trick every interviewer expects you to know.

Comments
1 min read
loading...