Using A * search algorithm and GBFS search algorithm to solve the Romanian problem
Romanian problem:
The agent is on holiday in Romania and is currently located in the city of Arad. Agent has a flight from Bucharest tomorrow, so it can't be changed. Now you need to find the shortest path to Bucharest.
An example of running the program: