摘要: https://leetcode.com/problems/bitwise-and-of-numbers-range/[n,m]区间的合取总值就是n,m对齐后前面一段相同的数位的值比如5:1017:111结果就是4:100class Solution {public: int rangeBit... 阅读全文
posted @ 2015-08-27 19:27 雪溯 阅读(173) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/longest-substring-without-repeating-characters/思路:从某点结束所能取到的最早开头是到目前出现倒数第二次的字符的最末位置后一位如图:(S代表起点,T代表终点)abcabcab**S*T假设现在在... 阅读全文
posted @ 2015-08-27 11:37 雪溯 阅读(156) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/add-two-numbers/You are given two linked lists representing two non-negative numbers. The digits are stored in reverse o... 阅读全文
posted @ 2015-08-27 10:45 雪溯 阅读(149) 评论(0) 推荐(0) 编辑