Articles by Tag #dfs

Browse our collection of articles on various topics related to IT technologies. Dive in and explore something new!

DFS Traversal Guide: Easy way to remember DFS Traversel Path

There are two different way to traverse Binary Search Tree and Graph. The first approach is Breadth...

Learn More 1 0Jun 19 '24

Remove Methods from project

Problem TC: O(n*m) where n is the no. of nodes and m is the max no. of nodes/methods present in a...

Learn More 1 0Oct 6 '24

Minimum obstacle removal to reach corner

TC:O(n*mlog(n*m)) SC :O(n*m) Problem //BFS : dijkstra's class Solution { public int...

Learn More 0 0Jan 18

Clone graph

O(n) : where n is no. of nodes Problem /* Definition for a Node. class Node { public int val; ...

Learn More 0 0Mar 20

Implementing BFS and DFS in JavaScript

BFS (Breath First Search) Introduction This search basically goes from left to right at...

Learn More 0 0May 15 '24