08 2021 档案

摘要:Source Count the number of k's between 0 and n. k can be 0 - 9. Example if n=12, k=1 in [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], we have FIVE 1's ( 阅读全文
posted @ 2021-08-22 14:16 凌雨尘 阅读(59) 评论(0) 推荐(0)
摘要:Source Given an array of integers and a number k, the majority number is the number that occurs more than 1/k of the size of the array. Find it. Examp 阅读全文
posted @ 2021-08-08 19:08 凌雨尘 阅读(53) 评论(0) 推荐(0)