02 2017 档案

摘要:Given a word, you need to judge whether the usage of capitals in it is right or not. We define the usage of capitals in a word to be right when one of 阅读全文
posted @ 2017-02-22 20:07 sunli0205 阅读(425) 评论(0) 推荐(0)
摘要:1、左移( << ) // 0000 0000 0000 0000 0000 0000 0000 0101 然后左移2位后,低位补0:// // 0000 0000 0000 0000 0000 0000 0001 0100 换算成10进制为20 System.out.println(5 << 2) 阅读全文
posted @ 2017-02-22 10:06 sunli0205 阅读(234) 评论(0) 推荐(0)
摘要:The Hamming distance between two integers is the number of positions at which the corresponding bits are different. Given two integers x and y, calcul 阅读全文
posted @ 2017-02-22 10:00 sunli0205 阅读(208) 评论(0) 推荐(0)
摘要:Given a positive integer, output its complement number. The complement strategy is to flip the bits of its binary representation. Note: Example 1: Exa 阅读全文
posted @ 2017-02-21 09:53 sunli0205 阅读(234) 评论(0) 推荐(0)
摘要:为什么要了解浏览器加载、解析、渲染这个过程? 1.了解浏览器加载,可以在引用外部样式文件,外部js时,将他们放到合适的位置,使浏览器以最快的速度将文件加载完毕 2.了解浏览器解析,可以在构建DOM结构,组织css选择器时,选择最优的写法,提高浏览器的解析速率。 3.了解浏览器渲染,明白渲染的过程,我 阅读全文
posted @ 2017-02-20 21:07 sunli0205 阅读(677) 评论(0) 推荐(0)
摘要:使用cookie,使用web worker,使用localeStorage和sessionStorage cookie,兼容性很好,但是大概4kb.同时,cookie可以永久存在,也可以再回话结束后结束。要就关闭标签页回话立即结束时,不要用cookie,因为它还很有可能会存在一段时间,即使是sess 阅读全文
posted @ 2017-02-20 11:45 sunli0205 阅读(7031) 评论(0) 推荐(1)