How to Perform BFS (Breadth First Search) on a given Ajacency List and return a List in Python? You will be given an adjacency list (list of lists), and will be reuired to perform BFS on all ...
Return result as a List after Performing DFS (Depth First Search) in Python
How to store the result of DFS (Depth First Search) in a List in Python In coding probs on websites, you are given an adjacency list and number of vertices as input. You are required to perfo...
Take Input of Graph in Python
How to take an input of Graph in Python for Competitve Programming (CP) problems? The first line generally contains number of vertices V and the next E lines denotes the Edges between the ver...
Getting Started
How to Use The 2 Minute Codes? The only 3 steps to use the website: Just go to the YouTube channel of The 2 Minute Codes, watch the short videos. Read the solution from thi...
- 1
- 1 / 1