e********c 发帖数: 66 | 1 Given a sorted array, find the frequency of a given number in the array.
example: array->1 1 2 2 3 4 5 5 5 5 5 5 6
number to find -> 5
answer: 6 | k***a 发帖数: 1199 | 2 lg(n)
【在 e********c 的大作中提到】 : Given a sorted array, find the frequency of a given number in the array. : example: array->1 1 2 2 3 4 5 5 5 5 5 5 6 : number to find -> 5 : answer: 6
| l********l 发帖数: 91 | 3 基本等于Leetcode Search for a Range原题 |
|