Tag JAVA

Depth-first search algorithm

Depth-first search algorithm

Depth-first search (DFS) is a search algorithm that explores the search tree by going as deep as possible along each branch before backtracking. This means that it explores each branch of the search tree as far as possible before moving…

Breadth-first search algorithm

breadth-first search

The breadth-first search (BFS) algorithm is a search algorithm that explores the search tree by visiting all of the nodes at the same depth before moving on to the next level. This means that it visits all of the nodes…

Setup JAVA_HOME on Apple Mac

Setup Java_Home

Download the latest java from Oracle Open terminal and check the java version 2. Check if JAVA_HOME is set echo $JAVA_HOME 3. If it returned empty then on the home / check for the file ~/.zshenv by hitting ls…

Enable Notifications OK No thanks