
LeetCode
epsilon1
这个作者很懒,什么都没留下…
展开
-
Google 面试题 | Palindrome Partitioning II
DescriptionGiven a string s, partition s such that every substring of the partition is a palindrome.Return the minimum cuts needed for a palindrome partitioning of s.For example, givens = "aab", Retur原创 2016-09-30 13:41:16 · 597 阅读 · 0 评论 -
Google面试题 | 数字计数
DescriptionGiven a non-negative integer n, count all numbers with unique digits, x, where 0 ≤ x < 10n.Example: Given n = 2, return 91. (The answer should be the total numbers in the range of 0 ≤ x < 1原创 2016-09-30 18:20:40 · 744 阅读 · 0 评论 -
Largest Divisible Subset
DescriptionGiven a set of distinct positive integers, find the largest subset such that every pair (Si, Sj) of elements in this subset satisfies: Si % Sj = 0 or Sj % Si = 0.If there are multiple soluti原创 2016-09-30 19:01:29 · 823 阅读 · 0 评论