摘要: 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 阅读(394) 评论(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 阅读(191) 评论(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 阅读(174) 评论(0) 推荐(0) 编辑