Created
April 2, 2021 14:25
-
-
Save vanbrabantf/091a4318d8012b66020e79a94feeb6f6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$right = $this->invert($tree->getLeft()); | |
$left = $this->invert($tree->getRight()); | |
return new Node($tree->getValue(), $left, $right); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment