Skip to content
Navigation Menu
Toggle navigation
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Spark
Build and deploy intelligent apps
GitHub Models
Manage and compare prompts
MCP Registry
New
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
Accelerator
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search or jump to...
Search code, repositories, users, issues, pull requests...
Search syntax tips
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Sign in
Sign up
Appearance settings
Resetting focus
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
cenkc
/
algorithms
Public
Notifications
You must be signed in to change notification settings
Fork
4
Star
9
Code
Issues
2
Pull requests
0
Actions
Projects
0
Wiki
Security
Uh oh!
There was an error while loading.
Please reload this page
.
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security
Insights
Depth First Search (DFS)
Jump to bottom
Cenk Canarslan edited this page
Nov 9, 2021
·
2 revisions
PROBLEM DESCR.
SOLUTION
DIFFICULTY
RELATED TOPICS
ADDITIONAL INFO
LeetCode
98. Validate Binary Search Tree
🟠
Medium
Tree
,
Depth-first Search
Problem Set / Algorithms
LeetCode
101. Symmetric Tree
🟢
Easy
Tree
,
Depth-first Search
,
Breadth-first Search
Problem Set / Algorithms
LeetCode
104. Maximum Depth of Binary Tree
🟢
Easy
Tree
,
Depth-first Search
Problem Set / Algorithms
LeetCode
111. Minimum Depth of Binary Tree
🟢
Easy
Tree
,
Depth-first Search
,
Breadth-first Search
Problem Set / Algorithms
LeetCode
124. Binary Tree Maximum Path Sum
🔴
Hard
Dynamic Programming
,
Tree
,
Depth-first Search
,
Binary Tree
Problem Set / Algorithms
LeetCode
130. Surrounded Regions
🟠
Medium
Depth-first Search
,
Breadth-first Search
,
Union Find
Problem Set / Algorithms
LeetCode
200. Number of Islands
🟠
Medium
Depth-first Search
,
Breadth-first Search
,
Union Find
Problem Set / Algorithms
LeetCode
559. Maximum Depth of N-ary Tree
🟢
Easy
Depth-first Search
,
Breadth-first Search
Problem Set / Algorithms
LeetCode
TreasureIsland
Depth-first Search
,
Breadth-first Search
Interview Question / Amazon
LeetCode
TreasureIslandCenk
Depth-first Search
,
Breadth-first Search
Interview Question / Amazon
Toggle table of contents
Pages
18
Loading
Home
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Binary Search
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Binary Tree
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Breadth First Search (BFS)
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Depth First Search (DFS)
Loading
Divide and Conquer
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Dynamic Programming
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Graph
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Greedy
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Interactive
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Linked List
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Minimum Spanning Tree MST
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Notes
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Shortest Path
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Sliding Window
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Sorting
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Tree
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Trie
Uh oh!
There was an error while loading.
Please reload this page
.
Show 3 more pages…
Clone this wiki locally
You can’t perform that action at this time.