摘要: list的反转Collections.sort(list, Collections.reverseOrder()); 阅读全文
posted @ 2018-09-04 23:33 jasoncool1 阅读(74) 评论(0) 推荐(0) 编辑
摘要: StringBuffer类可以append reverse insert deleteCharAt setCharAt 其实直接用String的array也ok 阅读全文
posted @ 2018-09-04 10:05 jasoncool1 阅读(119) 评论(0) 推荐(0) 编辑
摘要: 直接用一个carry记录进位就可以 阅读全文
posted @ 2018-09-04 09:11 jasoncool1 阅读(120) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/top-k-frequent-elements/discuss/126241/java 先记录次数 然后按次数放进数组 然后从后往前取出 阅读全文
posted @ 2018-09-03 06:58 jasoncool1 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 身体不好 阅读全文
posted @ 2018-09-02 21:41 jasoncool1 阅读(88) 评论(0) 推荐(0) 编辑
摘要: 身体不好 阅读全文
posted @ 2018-09-02 11:19 jasoncool1 阅读(85) 评论(0) 推荐(0) 编辑
摘要: 注意转换类型 别忘了加long 阅读全文
posted @ 2018-09-02 06:54 jasoncool1 阅读(84) 评论(0) 推荐(0) 编辑
摘要: 身体不好 阅读全文
posted @ 2018-09-02 05:42 jasoncool1 阅读(99) 评论(0) 推荐(0) 编辑
摘要: 身体不好 阅读全文
posted @ 2018-09-02 04:42 jasoncool1 阅读(112) 评论(0) 推荐(0) 编辑
摘要: 身体不好 阅读全文
posted @ 2018-09-02 03:51 jasoncool1 阅读(117) 评论(0) 推荐(0) 编辑