fork download
  1. <?php
  2.  
  3. function oneStep($paths, $pathDone, $time, $point, $target, $visited){
  4.  
  5. foreach($paths[$point] as $key=> $value){
  6. if(in_array($key, $visited)){
  7. continue;
  8. }
  9. $time=$paths[$point][$key];
  10. if($time<$pathDone[$point]['time']){
  11. $pathDone[$point]['time']=$time;
  12. $pathDone[$point]['path'][]=$key;
  13.  
  14. }
  15. $visited=$point;
  16. }
  17. }
Success #stdin #stdout 0.01s 20568KB
stdin
Standard input is empty
stdout
Standard output is empty