摘要: 题目:Write an algorithm to determine if a number is "happy".A happy number is a number defined by the following process: Starting with any positive inte... 阅读全文
posted @ 2015-12-19 20:52 zhangbaochong 阅读(522) 评论(0) 推荐(0) 编辑
摘要: 题目:Given an arraynums, write a function to move all0's to the end of it while maintaining the relative order of the non-zero elements.For example, giv... 阅读全文
posted @ 2015-12-19 20:34 zhangbaochong 阅读(663) 评论(0) 推荐(0) 编辑