Skip to content

Latest commit

 

History

History
executable file
·
8 lines (5 loc) · 278 Bytes

File metadata and controls

executable file
·
8 lines (5 loc) · 278 Bytes

题目

Given an integer array of size n, find all elements that appear more than ⌊ n/3 ⌋ times. The algorithm should run in linear time and in O(1) space.

解题思路

见程序注释