摘要: A string S of lowercase letters is given. We want to partition this string into as many parts as possible so that each letter appears in at most one p 阅读全文
posted @ 2018-01-15 21:45 immjc 阅读(328) 评论(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 representation 阅读全文
posted @ 2018-01-15 16:56 immjc 阅读(169) 评论(0) 推荐(0) 编辑
摘要: Given an integer array with no duplicates. A maximum tree building on this array is defined as follow: Construct the maximum tree by the given array a 阅读全文
posted @ 2018-01-15 11:27 immjc 阅读(135) 评论(0) 推荐(0) 编辑