Skip to content

Commit

Permalink
Merge pull request wangzheng0822#289 from git-zjx/patch-3
Browse files Browse the repository at this point in the history
Update main.php
  • Loading branch information
wangzheng0822 authored Apr 6, 2019
2 parents ea402c7 + c3ac273 commit 277cf28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions php/07_linkedlist/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ public function deleteLastKth($index)
++$i;
}

if ($fast == null) {
if (null == $fast) {
return true;
}

Expand Down Expand Up @@ -305,4 +305,4 @@ public function findMiddleNode()
$listAlgo->setList($list);
$middleNode = $listAlgo->findMiddleNode();
var_dump($middleNode->data);
echo '-------------------------------------------------------------'. PHP_EOL . PHP_EOL;
echo '-------------------------------------------------------------'. PHP_EOL . PHP_EOL;

0 comments on commit 277cf28

Please sign in to comment.