#algorithms
Read more stories on Hashnode
Articles with this tag
During the DFS traversal, we can keep track of the visited nodes and the current path. If we encounter a node that has already been visited and is...
Dynamic programming is a powerful optimization technique that can be applied to a wide range of problems, including optimization, search, and...
Trees are a fundamental data structure in computer science, and their traversal is a common operation in many algorithms. There are several ways to...
Binary trees are a fundamental data structure in computer science, often used for searching and sorting algorithms. They are a tree-like data...
Breadth-first search (BFS) and Depth-first search (DFS) are two popular algorithms used for traversing and searching in a graph. Both algorithms can...