
leedcode奇妙解法
bwcxljsm
这个作者很懒,什么都没留下…
展开
-
416. Partition Equal Subset Sum
Given a non-empty array containing only positive integers, find if the array can be partitioned into two subsets such that the sum of elements in both subsets is equal.Note:Each of the array element w...原创 2018-05-08 22:28:41 · 139 阅读 · 0 评论 -
268. Missing Number
Given an array containing n distinct numbers taken from 0, 1, 2, ..., n, find the one that is missing from the array.Example 1Input: [3,0,1] Output: 2 Example 2Input: [9,6,4,2,3,5,7,0,1] Output: 8 Not...原创 2018-05-05 11:54:05 · 125 阅读 · 0 评论