上一页 1 ··· 33 34 35 36 37 38 39 40 41 ··· 76 下一页
摘要: 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 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)
摘要: Given a group of two strings, you need to find the longest uncommon subsequence of this group of two strings. The longest uncommon subsequence is defi 阅读全文
posted @ 2018-10-25 10:37 bernieloveslife 阅读(136) 评论(0) 推荐(0)
摘要: Given two strings s and t which consist of only lowercase letters. String t is generated by random shuffling string s and then add one more letter at 阅读全文
posted @ 2018-10-25 10:36 bernieloveslife 阅读(139) 评论(0) 推荐(0)
摘要: Find the minimum length word from a given dictionary words, which has all the letters from the string licensePlate. Such a word is said to complete th 阅读全文
posted @ 2018-10-25 10:36 bernieloveslife 阅读(296) 评论(0) 推荐(0)
摘要: On a N N grid, we place some 1 1 1 cubes. Each value v = grid[i][j] represents a tower of v cubes placed on top of grid cell (i, j). Return the total 阅读全文
posted @ 2018-10-25 10:36 bernieloveslife 阅读(116) 评论(0) 推荐(0)
摘要: A sentence S is given, composed of words separated by spaces. Each word consists of lowercase and uppercase letters only. We would like to convert the 阅读全文
posted @ 2018-10-25 10:36 bernieloveslife 阅读(179) 评论(0) 推荐(0)
摘要: Design a HashMap without using any built in hash table libraries. To be specific, your design should include these functions: put(key, value) : Insert 阅读全文
posted @ 2018-10-24 22:03 bernieloveslife 阅读(219) 评论(0) 推荐(0)
摘要: We are given two strings, A and B. A shift on A consists of taking string A and moving the leftmost character to the rightmost position. For example, 阅读全文
posted @ 2018-10-24 22:03 bernieloveslife 阅读(91) 评论(0) 推荐(0)
上一页 1 ··· 33 34 35 36 37 38 39 40 41 ··· 76 下一页