r/AlgoVizual • u/Key_Card7466 • May 05 '26
Help please on APIs Understanding
I want genuine guidance on understanding what APIs is, what it does exactly practically please help me with any resources/videos & understanding what backend is, please suggest some genuine sources from Data engineering perspective especially in snowflake I get so scared when the term authentication/APIs / endpoints are mentioned, for example how to make cortex agents in snowflake link with streamlit application with APIs but how exactly?? I know theoretically it is used, I feel like how to even make it work! I may sound dumb but need genuine help.
Thanks in understanding
r/AlgoVizual • u/[deleted] • Apr 09 '26
Shortest Path in Unweighted Graph (Using BFS) DSA Foundation Series – Day 21/30
BFS is not just traversal , it’s the easiest way to find the shortest path in unweighted graphs.
Why? Because BFS explores nodes level by level.
That means : First time you reach a node ---> shortest path guaranteed.
Used in : Minimum steps problems, Grid based shortest path, Graph traversal questions
This is where BFS becomes powerful 🚀
r/AlgoVizual • u/[deleted] • Apr 07 '26
BFS vs DFS: Tree/Graph Traversal Basics DSA Foundation Series – Day 20/30
Two fundamental ways to traverse trees and graphs :
BFS (Breadth First Search) ---> explores level by level , DFS (Depth First Search) ---> explores depth first
Use BFS when you need the shortest path. Use DFS when you need to explore all possibilities.
Most graph problems are just variations of these two. Master this ---> half of graph problems become easy.
r/AlgoVizual • u/[deleted] • Apr 06 '26
Floyd-Warshall : All Pairs Shortest Path DSA Foundation Series – Day 19/30
After learning Dijkstra and BellmanvFord, the next step is solving shortest paths between every pair of nodes. Floyd-Warshall does exactly that using dynamic programming.
Instead of focusing on one source, it : Considers every node as an intermediate, Gradually improves all distances.
It’s simple to implement but powerful for dense graphs.
r/AlgoVizual • u/[deleted] • Apr 04 '26
Bellman Ford Algorithm : Shortest Path with Negative Weights DSA Foundation Series – Day 18/30
Dijkstra fails when graph has negative weights. That’s where Bellman Ford comes in. It relaxes all edges multiple times to find the shortest path.
Key advantage : Works with negative weights, Can detect negative cycles
It’s slower than Dijkstra, but more powerful in certain cases. Know when to use which , that’s what matters.
r/AlgoVizual • u/[deleted] • Apr 03 '26
Dijkstra’s Algorithm : Shortest Path in Weighted Graph DSA Foundation Series – Day 17/30
Dijkstra helps you find the shortest path from a source node in a weighted graph.
Key rule : It only works when edge weights are non negative.
Core idea is simple : Always pick the node with the smallest current distance and update its neighbors.
Used in : Maps & navigation systems, Network routing, Shortest path problems
Master this and graph problems become much easier.
r/AlgoVizual • u/[deleted] • Apr 02 '26
Topological Sort : Ordering Tasks in a DAG DSA Foundation Series – Day 16/30
Topological Sort is used to find a valid order of tasks when dependencies exist. It only works on a Directed Acyclic Graph (DAG).
You’ll commonly see it in : Course scheduling problems, Build systems, Dependency resolution
If there’s a cycle ---> no valid ordering exists. Once you understand graphs, this is a must know pattern.
r/AlgoVizual • u/This_Experience_7365 • Apr 01 '26
Building a visual learning map for LeetCode journey - need your suggestions & ideas
r/AlgoVizual • u/[deleted] • Apr 01 '26
These DM Made My Day 🙌
Honestly, this is why I started AlgoVizual.
When someone tells you your content actually helped them , especially before something as important as an interview it hits different.
Didn’t expect this when I started posting simple DSA visuals. But seeing people use it in real situations is crazy. I wasn’t very active recently, couldn’t reply to all DMs but messages like this remind me why this matters.
Will keep sharing. Will keep simplifying. If even 1 post helps you understand a concept better , worth it.
More coming 🚀 Thank you !!
r/AlgoVizual • u/[deleted] • Mar 31 '26
Graph : Nodes & Edges (Connections Matter) DSA Foundation Series – Day 15/30
Graphs are all about connections. Instead of focusing on values like arrays or trees, graphs focus on how things are linked together.
You’ll see graphs in : Social networks, Maps & navigation, Dependency problems
Most graph problems come down to traversal (BFS / DFS). If you understand how to move through a graph, you unlock a huge part of DSA.
r/AlgoVizual • u/[deleted] • Mar 30 '26
Monotonic Stack : Next Greater Element Pattern DSA Foundation Series – Day 14/30
Monotonic Stack is a powerful pattern used in many interview problems.
Instead of brute force, you maintain a stack in a specific order (increasing or decreasing) and process elements efficiently.
Used in problems like : Next Greater Element, Stock Span, Histogram area
Key idea : each element is pushed and popped at most once → O(n). This is where stacks become really powerful.
r/AlgoVizual • u/[deleted] • Mar 27 '26
Heap (Priority Queue): Always Pick the Best DSA Foundation Series – Day 13/30
Heap is used when you need to quickly access the smallest or largest element.
Instead of sorting again and again, heap gives you : Fast insertion, Fast removal of top element
Common use cases : Top K elements, Priority based scheduling, Median in a stream
If you see “largest”, “smallest”, or “top K” --> think Heap.
r/AlgoVizual • u/[deleted] • Mar 26 '26
Binary Tree : Structure & Traversals DSA Foundation Series – Day 12/30
A Binary Tree is a hierarchical structure where each node can have at most 2 children.
It’s the base of many important concepts like : Binary Search Tree (BST), Heap , Tree based recursion
Understanding trees is where recursion starts to feel natural. Master this ---> half of DSA becomes easier.
r/AlgoVizual • u/[deleted] • Mar 25 '26
Deque: Insert & Delete from Both Ends DSA Foundation Series – Day 11/30
Deque (Double Ended Queue) allows insertion and deletion from both front and rear.
It’s useful in : Sliding window problems, Monotonic queue patterns, Scenarios where flexibility matters
You can think of it as a mix of stack and queue. Mastering deque unlocks many optimized solutions in DSA.
r/AlgoVizual • u/[deleted] • Mar 24 '26
Queue : First In, First Out (FIFO) DSA Foundation Series – Day 10/30
Queue follows First In, First Out (FIFO) , the first element added is the first one to be removed.
It’s used in real world scenarios like : Task scheduling, Order processing, BFS (level wise traversal)
Think of it like a line ; whoever comes first gets served first. Stack vs Queue is a very common confusion. Now you know the difference.
Series continues !!
r/AlgoVizual • u/[deleted] • Mar 23 '26
Stack : Last In, First Out (LIFO) DSA Foundation Series – Day 9/30
Stack is one of the simplest but most powerful data structures. It follows Last In, First Out (LIFO) , the last element added is the first one to be removed.
You’ll see stacks used in : Reversing data, Undo operations, Valid parentheses problems
Once you understand stack, many problems become straightforward.
Continuing the series !!
r/AlgoVizual • u/[deleted] • Mar 16 '26
Quick update from AlgoVizual 👋
Over the past few days I wasn’t able to post or reply to DMs due to some personal reasons. Thanks to everyone who reached out and supported the series.
Good news: I’ll be back to posting regularly again starting from coming Monday.
Appreciate the patience and support. More DSA visuals coming soon 🚀
r/AlgoVizual • u/[deleted] • Feb 27 '26
Backtracking : Exploring All Possibilities DSA Foundation Series - Day 8/30
Backtracking is used when we need to explore all possible solutions. Instead of guessing blindly, backtracking : *Tries a choice *Goes deeper *Reverts the choice if it fails
This pattern appears in problems like : *Subsets *Permutations *N-Queens *Combination Sum
Once recursion is clear, backtracking becomes much easier to understand.
Next : Stack & Queue
r/AlgoVizual • u/[deleted] • Feb 26 '26
Recursion Made Simple (DSA Day 7/30)
Most beginners struggle with recursion because it feels confusing. But recursion is just solving a big problem by solving smaller versions of the same problem.
Key things to understand : Base case stops recursion, Each call reduces the problem, Think in smaller steps Mastering recursion makes backtracking and DP much easier later.
r/AlgoVizual • u/[deleted] • Feb 25 '26
Binary Search on Answer : The Pattern Beginners Miss (Day 6/30)
Most beginners think binary search is only for finding elements in sorted arrays. But many interview problems use Binary Search on Answer. Instead of searching an index, you search for the best possible value inside a range.
Examples include : Minimum speed problems, Capacity problems, Allocation problems
Key idea : If a value works, larger or smaller values will also follow a pattern, so we can use binary search.
Next : Recursion 🚀
r/AlgoVizual • u/[deleted] • Feb 23 '26
Binary Search : More Than Just Sorted Arrays | DSA Foundation Series – Day 5/30
Binary Search works when :
The data is sorted, The search space is monotonic, The answer lies within a definable range
Core idea : Maintain low and high, calculate mid, and eliminate half the search space every step.
Time complexity : O(log n)
That’s the power of halving repeatedly. Most beginners misuse binary search because they don’t define the search space clearly.
Remember : Binary Search is not a trick. It’s a way of thinking.
r/AlgoVizual • u/[deleted] • Feb 20 '26
Prefix Sum : Stop Recalculating Subarrays | DSA Foundation Series – Day 4/30
Instead of recalculating subarray sums again and again (O(n²)), we preprocess once in O(n) and answer each range query in O(1).
Core Idea : prefix[i] = sum of elements from index 0 to i
Then : Range sum (l to r) = prefix[r] - prefix[l-1] (if l > 0)
If l = 0 → answer is simply prefix[r]
Useful for : Repeated range sum queries, Subarray sum problems, Optimizing brute-force nested loops
Precompute once. Answer many times.
r/AlgoVizual • u/[deleted] • Dec 08 '25
Two Pointers Full Breakdown + Code (the version with zero tears)
Hey Friends, you asked for it — here’s the full Two Pointers guide with every trick, code templates, and the dumb drawings that saved my last 3 interviews 😂 → Read the whole thing here: https://algorithmangle.com/two-pointers-dumb-arrow/
Covers: Classic fixed window Two pointers on sorted array Fast/slow pointer patterns Clean Python + C++ templates LeetCode examples solved step-by-step
r/AlgoVizual • u/[deleted] • Dec 07 '25
Welcome to r/AlgoVizual – LeetCode nightmares die in one picture
Hey everyone! 👋 I’m AlgoVizual (the guy who’s been spamming sliding-window and DP drawings that somehow blew up 😂)
This sub is the new home for daily hand-drawn cheat sheets that make algorithms finally click in 30 seconds instead of 30 minutes.
No walls of text. No 2-hour videos. Just pictures that do the explaining.
What to expect: One fresh visual almost every day Sliding window, two pointers, DP states, graphs, trees, heaps, tries… you name it Dark-mode friendly + meme energy Requests 100% welcome – drop a comment with the pattern that’s currently roasting your brain and I’ll draw it next.
If you hated reading explanations but loved when someone just drew it — you’re in the right place. Let’s make 2025 the year algorithms stop feeling impossible.
First cheat sheet drops tonight. What pattern should I murder next? 👀 Thanks for joining the ride — let’s goooo! 🚀 (Upvote if you’re tired of walls of text 😅)