Last active
February 26, 2021 10:04
-
-
Save lifeparticle/022bd07dde206dff748c41928711f3a8 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
public static int countOccurrences(int values[], int target) { | |
return upperBound(values, target) - lowerBound(values, target); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment