Search
Lessons (14)
- Sorting Algorithms
From simple bubble sort to merge sort and quick sort. See how each one works, compare their speeds …
- DSA Interview Patterns Cheat Sheet
… intervals (merge overlapping meetings) js function mergeIntervals(intervals) { const sorted = intervals.toSorted((a, b) = a[0] - b[0 …
- Heaps & Priority Queues
… merge K sorted lists Put the first element of each list in a heap; repeatedly pop the smallest …
- Indexes, EXPLAIN & Query Plans
… Ignore the rest for now Sort Method: external merge Disk The sort spilled to disk; raise work mem …
- Database Internals, Replication and Scaling
… Log-Structured Merge tree): writes go into memory, then get flushed to disk as new sorted files in …
- Two Pointers & Sliding Window
… cycle Two arrays One pointer per array Merge two sorted arrays, intersection Example: remove duplicates in place (fast …
- Design a Social Media Feed
… When a follower opens the feed, fetch the celebrity's recent posts and merge them in. Most large …
- Big-O Notation Made Simple
… log n) Linearithmic ~10,000 Good sorting (merge sort, Array.sort ) O(n²) Quadratic 1,000,000 Nested …
- Linked Lists
… js // Merge two sorted lists: 1→3→5 + 2→4 → 1→2→3→4→5 function mergeSorted(a …
- Collaborative Document Editing & Real-Time Sync
… 3. Offline merge: edit offline for an hour, then reconnect. The merge must succeed and nothing acked may …
- Design a Polite Web Crawler
… One small shop's website links to itself with endless variations: ?sort=price , ?sort=price&page=2 , ?color …
- Linux Troubleshooting Playbook & Interview Questions
… Docker removes most of these differences. Useful one-liners Need Command --- --- Top memory users ps aux --sort=-%mem …
- Month 1: Data, Math Intuition and Classic ML (Weeks 1-4)
… 3. Wednesday: Pandas basics: read csv , head , describe , groupby , merge , filtering, and missing values with isna and fillna …
- Go Concurrency: Goroutines, Channels and Context
… three square stages share the same input results := merge(square(src), square(src), square(src)) // fan-in for …