solution

package
v0.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 18, 2021 License: MIT Imports: 0 Imported by: 0

README

1287. Element Appearing More Than 25% In Sorted Array

[简单] 数组


给你一个非递减的 有序 整数数组,已知这个数组中恰好有一个整数,它的出现次数超过数组元素总数的 25%。

请你找到并返回这个整数

 

示例:


输入:arr = [1,2,2,6,6,6,6,7,10]
输出:6


 

提示:


	1 <= arr.length <= 10^4
	0 <= arr[i] <= 10^5


Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL