2018年1月23日

交替位的二进制数

摘要: 693. Binary Number with Alternating Bits Given a positive integer, check whether it has alternating bits: namely, if two adjacent bits will always hav 阅读全文

posted @ 2018-01-23 22:40 sannere 阅读(266) 评论(0) 推荐(0)

2018年1月17日

关于数组(一)——遍历

摘要: leetcode里面,数组是出现频率最高的题目,尤其是easy的题目更明显。我猜啊,数组的逻辑简单,所以可以实现各种各样的问题的算法。而且,js当中,关于数组的库函数好多,也好好用。一直想要好好总结一下,所以才有了一边刷题,一边写学习coding的心得的博客想法。这都归功于数组——那么多好用的、多到 阅读全文

posted @ 2018-01-17 22:06 sannere 阅读(97) 评论(0) 推荐(0)

导航