摘要: Given two integers L and R, find the count of numbers in the range [L, R] (inclusive) having a prime number of set bits in their binary representation 阅读全文
posted @ 2018-10-26 10:55 bernieloveslife 阅读(117) 评论(0) 推荐(0)
摘要: Given a positive integer, check whether it has alternating bits: namely, if two adjacent bits will always have different values. Example 1: Input: 5 O 阅读全文
posted @ 2018-10-26 10:55 bernieloveslife 阅读(94) 评论(0) 推荐(0)
摘要: Given a string S, return the "reversed" string where all characters that are not a letter stay in the same place, and all letters reverse their positi 阅读全文
posted @ 2018-10-26 10:55 bernieloveslife 阅读(102) 评论(0) 推荐(0)
摘要: You're now a baseball game point recorder. Given a list of strings, each string can be one of the 4 following types: 1. Integer (one round's score): D 阅读全文
posted @ 2018-10-26 10:55 bernieloveslife 阅读(115) 评论(0) 推荐(0)
摘要: Given a non empty array of digits representing a non negative integer, plus one to the integer. The digits are stored such that the most significant d 阅读全文
posted @ 2018-10-26 10:54 bernieloveslife 阅读(97) 评论(0) 推荐(0)