Educational articles on Data Structures and Algorithms with visual code execution demonstrations.
This repository contains articles that explain fundamental data structures and algorithms using:
- Clear, simple explanations
- Step-by-step JavaScript implementations
- Visual GIF demonstrations using the code-execution engine
- Complexity analysis
dsa-posts/
├── prompts/ # Article generation prompts
├── sample-blogs/ # Reference examples
├── stacks/ # Stack data structure articles
├── queues/ # Queue data structure articles
└── graphs/ # Graph algorithms articles
Articles covering:
- Stack implementation and operations
- Stack-based algorithms
- Applications (expression evaluation, backtracking, etc.)
Articles covering:
- Queue implementation and operations
- Circular queues, deques
- Queue-based algorithms (BFS, task scheduling, etc.)
Articles covering:
- Graph representations (adjacency list, matrix)
- Graph traversal algorithms (BFS, DFS)
- Shortest path algorithms
- Graph applications (social networks, routing, etc.)
All articles follow a consistent structure defined in /prompts/algorithm-article-prompt.md:
- Introduction - Simple problem statement (2-3 sentences)
- Explanation - Conceptual understanding
- Implementation - Step-by-step JavaScript code with GIF visualization
- Complexity - Time and space complexity analysis
Each article includes GIF demonstrations created using the code-execution engine from se-viz-lib. These GIFs show:
- Variable states at each execution step
- Data structure changes (queue filling/emptying, stack push/pop, etc.)
- Algorithm progression
- Final results
ffmpeg -i array_b.mov -vcodec h264 -acodec aac array_b.mp4
Developers learning data structures and algorithms, from beginner to intermediate level.
JavaScript (ES6+)