摘要: Given a non-empty array of non-negative integers nums, the degree of this array is defined as the maximum frequency of any one of its elements. Your t 阅读全文
posted @ 2020-07-03 20:53 whatyouthink 阅读(146) 评论(0) 推荐(0) 编辑
摘要: Given an array A of integers, return true if and only if we can partition the array into three non-empty parts with equal sums. Formally, we can parti 阅读全文
posted @ 2020-07-03 20:40 whatyouthink 阅读(75) 评论(0) 推荐(0) 编辑
摘要: Given an array of integers that is already sorted in ascending order, find two numbers such that they add up to a specific target number. The function 阅读全文
posted @ 2020-07-03 20:26 whatyouthink 阅读(119) 评论(0) 推荐(0) 编辑
摘要: A bus has n stops numbered from 0 to n - 1 that form a circle. We know the distance between all pairs of neighboring stops where distance[i] is the di 阅读全文
posted @ 2020-07-03 18:10 whatyouthink 阅读(108) 评论(0) 推荐(0) 编辑