10 2015 档案

摘要:leetcode -Move ZeroesGiven an arraynums, write a function to move all0's to the end of it while maintaining the relative order of the non-zero element... 阅读全文
posted @ 2015-10-06 16:33 cnblogshnj 阅读(80) 评论(0) 推荐(0)
摘要:leetcode -Ugly NumberWrite a program to check whether a given number is an ugly number.Ugly numbers are positive numbers whose prime factors only incl... 阅读全文
posted @ 2015-10-05 14:13 cnblogshnj 阅读(107) 评论(0) 推荐(0)
摘要:leetcode -Sort ColorsGiven an array withnobjects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors... 阅读全文
posted @ 2015-10-05 12:04 cnblogshnj 阅读(107) 评论(0) 推荐(0)
摘要:leetcode -Product of Array Except SelfGiven an array ofnintegers wheren> 1,nums, return an arrayoutputsuch thatoutput[i]is equal to the product of all... 阅读全文
posted @ 2015-10-03 16:44 cnblogshnj 阅读(149) 评论(0) 推荐(0)