# Shafin Chowdhury — Programming & Computer Science, Explained Clearly

> Blog and portfolio of Shafin Chowdhury — CSE student writing about code, learning, and projects.

Practical programming guides, architecture deep dives, algorithms, mathematics, and software development notes by [Shafin Chowdhury](https://shafinchowdhury.dev/about/).

## Core Topic Hubs

- **[C++ Programming & Systems Engineering](https://shafinchowdhury.dev/topics/cpp/)** (C++): A complete curriculum from modern C++ language fundamentals to memory management, pointers, references, STL internals, and high-performance engineering. ([Markdown](https://shafinchowdhury.dev/topics/cpp.md))
- **[C++ Stack Tutorial Series: From Basics to Problems](https://shafinchowdhury.dev/topics/stack/)** (C++ Stack): A 5-part C++ stack series: LIFO basics and std::stack, stacks built on a vector, an array and a linked list, then five classic stack problems. ([Markdown](https://shafinchowdhury.dev/topics/stack.md))
- **[Queue in C++: Complete Beginner-to-Advanced Guide](https://shafinchowdhury.dev/topics/queue/)** (C++ Queue): Master the Queue data structure in C++ from FIFO fundamentals and STL std::queue to custom Array, Vector, and Linked List implementations, famous competitive programming Queue problems, and Queue vs Stack comparisons. ([Markdown](https://shafinchowdhury.dev/topics/queue.md))
- **[C++ Object-Oriented Programming](https://shafinchowdhury.dev/topics/cpp-oop/)** (C++ OOP): A complete curriculum on C++ Object-Oriented Programming: classes, constructors, encapsulation, inheritance, polymorphism, abstraction, copy semantics, and the Rule of Three, Five, and Zero. ([Markdown](https://shafinchowdhury.dev/topics/cpp-oop.md))
- **[Python Architecture & Core Mechanics](https://shafinchowdhury.dev/topics/python/)** (Python): Deep dives into CPython execution mechanics, internal memory models, control flow, and core data structures. ([Markdown](https://shafinchowdhury.dev/topics/python.md))
- **[Java & Object-Oriented Software Design](https://shafinchowdhury.dev/topics/java/)** (Java): A complete guide to Object-Oriented Programming (OOP) in Java, from conceptual foundations to robust encapsulation. ([Markdown](https://shafinchowdhury.dev/topics/java.md))
- **[Data Structures & Algorithmic Engineering](https://shafinchowdhury.dev/topics/dsa/)** (Algorithms & DSA): Essential data structures, memory layouts, algorithmic problem solving, and computational complexity. ([Markdown](https://shafinchowdhury.dev/topics/dsa.md))
- **[Trees, BSTs & Graph Traversal in C++](https://shafinchowdhury.dev/topics/trees-graphs/)** (Trees & Graphs): Binary trees, binary search trees, DFS and BFS in C++: concepts, interactive traversals, interview questions and university exam preparation. ([Markdown](https://shafinchowdhury.dev/topics/trees-graphs.md))
- **[Mathematics for Computer Science](https://shafinchowdhury.dev/topics/mathematics/)** (Mathematics): Comprehensive mathematical formulas, numeral systems, discrete structures, and problem-solving references. ([Markdown](https://shafinchowdhury.dev/topics/mathematics.md))

## Featured Guides

- **[Queue vs Stack in C++: LIFO vs FIFO, STL & Practical Comparison](https://shafinchowdhury.dev/posts/queue-vs-stack-in-cpp/)**: Understand the difference between Queue and Stack in C++. Compare FIFO vs LIFO ordering, insertion and deletion ends, accessible elements, std::queue vs std::stack in C++ STL, visual element traces, time complexity, and when to use each. ([Markdown](https://shafinchowdhury.dev/posts/queue-vs-stack-in-cpp.md))
- **[Top 5 Famous Queue Problems in Competitive Programming (With C++ Solutions)](https://shafinchowdhury.dev/posts/top-5-queue-problems-in-cpp/)**: Master the 5 most famous Queue and Deque problems in competitive programming and coding interviews: Implement Queue Using Stacks, Number of Recent Calls, Binary Tree Level Order Traversal, Rotten Oranges (BFS), and Sliding Window Maximum (Monotonic Deque)—complete with C++ code and dry runs. ([Markdown](https://shafinchowdhury.dev/posts/top-5-queue-problems-in-cpp.md))
- **[Understanding Queue in C++: Complete Beginner's Guide](https://shafinchowdhury.dev/posts/understanding-queue-in-cpp/)**: Learn the Queue data structure in C++ from scratch. Understand the FIFO (First-In, First-Out) principle, core Queue operations (enqueue, dequeue, front, rear, empty, size), std::queue in C++ STL, real-world examples, and time complexity. ([Markdown](https://shafinchowdhury.dev/posts/understanding-queue-in-cpp.md))

## Latest Articles

- **[DFS vs BFS: Complete Comparison With C++ Code, Examples & Use Cases](https://shafinchowdhury.dev/posts/dfs-vs-bfs/)** (2026-12-04): DFS vs BFS on one graph: stack vs queue, traversal order, O(V + E) time, memory, shortest paths, cycle detection and connected components, with C++ code. ([Markdown](https://shafinchowdhury.dev/posts/dfs-vs-bfs.md))
- **[What Are DFS and BFS? A Visual Beginner's Guide to Graph Traversal (C++)](https://shafinchowdhury.dev/posts/what-is-dfs-and-bfs/)** (2026-12-04): What is DFS and BFS? A visual beginner's guide to graphs, stacks and queues, with DFS and BFS traced step by step on one graph and simple C++ code. ([Markdown](https://shafinchowdhury.dev/posts/what-is-dfs-and-bfs.md))
- **[Binary Search Tree (BST) Questions for University Exams in Bangladesh: Construction, Deletion & Viva (With Answers)](https://shafinchowdhury.dev/posts/bst-questions-university-exams-bangladesh/)** (2026-12-04): BST exam questions for CSE students in Bangladesh: build a binary search tree from a sequence, traversals, all three deletion cases, pseudocode, viva answers. ([Markdown](https://shafinchowdhury.dev/posts/bst-questions-university-exams-bangladesh.md))
- **[Tree Questions for University Exams in Bangladesh: Written, Lab & Viva (With Answers)](https://shafinchowdhury.dev/posts/tree-questions-university-exams-bangladesh/)** (2026-12-04): Tree questions for university exams in Bangladesh with model answers: traversals, building a tree from traversals, recursive and iterative algorithms, viva. ([Markdown](https://shafinchowdhury.dev/posts/tree-questions-university-exams-bangladesh.md))
- **[Most Common Binary Search Tree (BST) Interview Questions (With C++ Solutions)](https://shafinchowdhury.dev/posts/bst-interview-questions/)** (2026-12-04): 20 BST interview questions with tested C++: validate BST, kth smallest, LCA, floor and ceil, recover BST, BST to linked list and largest BST subtree. ([Markdown](https://shafinchowdhury.dev/posts/bst-interview-questions.md))
- **[Most Common Tree Interview Questions (With C++ Solutions)](https://shafinchowdhury.dev/posts/tree-interview-questions/)** (2026-12-04): Tree interview questions from easy to hard: height, diameter, LCA, symmetric, balanced, build from traversals and serialize, with tested C++ solutions. ([Markdown](https://shafinchowdhury.dev/posts/tree-interview-questions.md))
- **[Binary Search Tree (BST) in C++: Search, Insert, Delete & Complete Guide](https://shafinchowdhury.dev/posts/binary-search-tree-bst/)** (2026-12-04): Binary search tree in C++: the BST property, search, insert, all three deletion cases with diagrams, successor, validation and complexity, with tested code. ([Markdown](https://shafinchowdhury.dev/posts/binary-search-tree-bst.md))
- **[Trees, Binary Trees & Tree Traversals in C++: Complete Beginner's Guide](https://shafinchowdhury.dev/posts/tree-binary-tree-traversals/)** (2026-12-04): Binary tree in C++: terminology, full vs complete vs perfect trees, building a tree, and inorder, preorder, postorder and level order traversal. ([Markdown](https://shafinchowdhury.dev/posts/tree-binary-tree-traversals.md))

## About the Author

Shafin Chowdhury is a Software Developer & Computer Science Student at North South University. Read the full profile at [https://shafinchowdhury.dev/about/](https://shafinchowdhury.dev/about/) or in Markdown at [https://shafinchowdhury.dev/about.md](https://shafinchowdhury.dev/about.md).
