paint-brush
Solving LeetCode Problems Using Graph Theoryby@mrdrseq
130 reads

Solving LeetCode Problems Using Graph Theory

by Ilia Ivankin10mApril 18th, 2024
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Graphs model pairwise relationships with vertices and edges. Trees are connected acyclic graphs. DFS explores deeply using a stack, useful for pathfinding and connectivity. BFS explores level by level with a queue, ideal for shortest path and level-order traversal.
featured image - Solving LeetCode Problems Using Graph Theory
Ilia Ivankin HackerNoon profile picture
Ilia Ivankin

Ilia Ivankin

@mrdrseq

Lead software engineer | Mentor | Try to become a rockstar

0-item
1-item

STORY’S CREDIBILITY

Guide

Guide

Walkthroughs, tutorials, guides, and tips. This story will teach you how to do something new or how to do something better.

Code License

Code License

The code in this story is for educational purposes. The readers are solely responsible for whatever they build with it.

L O A D I N G
. . . comments & more!

About Author

Ilia Ivankin HackerNoon profile picture
Ilia Ivankin@mrdrseq
Lead software engineer | Mentor | Try to become a rockstar

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite