Created
November 6, 2018 19:53
-
-
Save t0mm4rx/82ca1c9695d95e768bdf75d79a480ec0 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
$count = 0; | |
$targetY = 5; | |
for ($i = 0; $i < count($inputs); $i++) { | |
$first = $inputs[$i]; | |
$second = $inputs[$i + 1]; | |
if ($targetY >= $first && $targetY <= $second) { | |
$count++; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment