Skip to content

Shortest Path - have a function ShortestPath (strArr) take strArr which will be an array of strings which models a non-looping Graph.

Notifications You must be signed in to change notification settings

cxth/php_exam_shortest_path

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shortest Path

Have the function ShortestPath(strArr) take strArr which will be an array of strings which models a non-looping Graph. The structure of the array will be as follows. The first element in the array will be the number of nodes N (points) in the array as string.

The next N elements will be the nodes which can be anything (A, B, C ..). Then after the Nth element, the rest of the elements in the array will be the connections between all the nodes. Although, there may exist no connections at all.

How to Run:

$ composer update $ ./vendor/bin/phpunit --testdox tests

About

Shortest Path - have a function ShortestPath (strArr) take strArr which will be an array of strings which models a non-looping Graph.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages