摘要: 题目:Given an array and a value, remove all instances of that value in place and return the new length.The order of elements can be changed. It doesn't ... 阅读全文
posted @ 2015-12-20 20:04 zhangbaochong 阅读(237) 评论(0) 推荐(0) 编辑
摘要: 题目:Given an array ofnintegers wheren> 1,nums, return an arrayoutputsuch thatoutput[i]is equal to the product of all the elements ofnumsexceptnums[i].S... 阅读全文
posted @ 2015-12-20 19:22 zhangbaochong 阅读(303) 评论(0) 推荐(0) 编辑
摘要: 题目:Given an array of sizen, find the majority element. The majority element is the element that appears more than⌊ n/2 ⌋times.You may assume that the ... 阅读全文
posted @ 2015-12-20 14:13 zhangbaochong 阅读(301) 评论(0) 推荐(0) 编辑