Category · 12 articles
Data Structure
Hash Tables Data Structure in TypeScript: A Comprehensive Guide
A hash table maps keys to values with O(1) average-case lookups. That's the pitch. Here's how it actually works.
20 Apr 2024
Exploring Sets Data Structure in TypeScript: A Comprehensive Guide
A Set holds unique values. Add a duplicate and it's silently ignored. No errors, no extra logic needed. The Set handles uniqueness for you.
20 Apr 2024
Exploring Trie Data Structure in TypeScript: Implementation and Applications
Type "pro" into a search bar and get suggestions for "programming," "product," and "profile." Behind that feature is often a trie.
20 Apr 2024
Understanding Heaps: A Powerful Data Structure for Priority Queues
You have a million tasks. You always need the highest-priority one next. Sorting the entire list every time a task arrives is O(n log n). A heap gives you...
20 Apr 2024
Exploring Queue Data Structure in TypeScript: Implementation and Applications
A queue is first-in, first-out. Think of a line at a coffee shop. The first person in line gets served first. No cutting.
20 Apr 2024
Understanding Stack Data Structure in TypeScript: Implementation and Use Cases
A stack is last-in, first-out. Think of a stack of plates. You add to the top. You take from the top. You never pull from the middle.
20 Apr 2024
Exploring Linked List Data Structure in TypeScript
Arrays have a dirty secret: inserting at the beginning is O(n). Every element has to shift over. With a linked list, it's O(1).
20 Apr 2024
Exploring Matrix Data Structure in TypeScript
A matrix is a 2D grid of numbers arranged in rows and columns. If you've ever worked with images, game boards, spreadsheets, or machine learning features,...
20 Apr 2024
Exploring Array Data Structure in TypeScript
Arrays are the data structure you use without thinking about it. They're everywhere. And that familiarity hides some important performance characteristics.
20 Apr 2024
Exploring Primitive Data Structures, Number, String, Boolean, Null and Undefined in TypeScript
Before you reach for arrays, objects, or classes, there are primitives. These are the atomic building blocks of TypeScript. Every complex data structure e...
20 Apr 2024
Exploring Graph Data Structures in TypeScript
A graph models relationships. Nodes (vertices) represent entities. Edges represent connections between them. That's it. And that simple structure can mode...
20 Apr 2024
Exploring Tree Data Structure in TypeScript
Your file system is a tree. The HTML DOM is a tree. The organization chart at your company is a tree. Any time data has a parent-child hierarchy, you're l...
20 Apr 2024