摘要: [抄题]: S and T are strings composed of lowercase letters. In S, no letter occurs more than once. S was sorted in some custom order previously. We want 阅读全文
posted @ 2018-08-04 23:14 苗妙苗 阅读(195) 评论(0) 推荐(0)
摘要: [抄题]: Given the root of a tree, you are asked to find the most frequent subtree sum. The subtree sum of a node is defined as the sum of all the node v 阅读全文
posted @ 2018-08-04 21:57 苗妙苗 阅读(171) 评论(0) 推荐(0)
摘要: [抄题]: 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 represen 阅读全文
posted @ 2018-08-04 20:56 苗妙苗 阅读(208) 评论(0) 推荐(0)
摘要: [抄题]: You are given n pairs of numbers. In every pair, the first number is always smaller than the second number. Now, we define a pair (c, d) can fol 阅读全文
posted @ 2018-08-04 15:09 苗妙苗 阅读(310) 评论(0) 推荐(0)
摘要: [抄题]: Let's play the minesweeper game (Wikipedia, online game)! You are given a 2D char matrix representing the game board. 'M' represents an unreveal 阅读全文
posted @ 2018-08-04 10:29 苗妙苗 阅读(380) 评论(0) 推荐(0)