Fork me on GitHub
摘要: 描述 Given an array nums, write a function to move all 0's to the end of it while maintaining the relative order of the non zero elements. Note: 1.You m 阅读全文
posted @ 2018-04-09 10:09 Lancel0t 阅读(215) 评论(0) 推荐(0) 编辑
摘要: 描述 Given an array and a value, remove all instances of that value in place and return the new length. Do not allocate extra space for another array, y 阅读全文
posted @ 2018-04-09 10:00 Lancel0t 阅读(202) 评论(0) 推荐(1) 编辑
摘要: 描述 Given an array S of n integers, are there elements a, b, c, and d in S such that a + b + c + d = target? Find all unique quadruplets in the array w 阅读全文
posted @ 2018-04-09 09:58 Lancel0t 阅读(227) 评论(0) 推荐(0) 编辑