随笔分类 -  LintCode

摘要:第1章: 9.Fizz Buzz :http://www.lintcode.com/zh-cn/problem/fizz-buzz/ 解法1:(% String.valueOf) (1.rst; 2.for(1,n),15,5,3,else; 3.return) 1 public class Sol 阅读全文
posted @ 2017-01-21 23:21 不闻余物 阅读(552) 评论(0) 推荐(0)
摘要:Difficulty--Naive 463.Sort Integer 整数排序:http://www.lintcode.com/en/problem/sort-integers/# 冒泡排序:(两两比较取出最大的放最后) (外循环-趟数0,n-1;内循环-有序区的比较次数n-i-1趟;判断a[j] 阅读全文
posted @ 2016-12-07 16:54 不闻余物 阅读(356) 评论(0) 推荐(0)