上一页 1 2 3 4 5 6 7 8 9 10 ··· 23 下一页
摘要: Given n and k, return the k-th permutation sequence. Notice n will be between 1 and 9 inclusive. n will be between 1 and 9 inclusive. n will be betwee 阅读全文
posted @ 2016-04-04 13:41 哥布林工程师 阅读(108) 评论(0) 推荐(0) 编辑
摘要: Given a permutation which may contain repeated numbers, find its index in all the permutations of these numbers, which are ordered in lexicographical 阅读全文
posted @ 2016-04-04 13:16 哥布林工程师 阅读(163) 评论(0) 推荐(0) 编辑
摘要: Given a positive integer n, find the least number of perfect square numbers (for example, 1, 4, 9, 16, ...) which sum to n. Example Given n = 12, retu 阅读全文
posted @ 2016-04-04 10:25 哥布林工程师 阅读(120) 评论(0) 推荐(0) 编辑
摘要: Given an array nums of integers and an int k, partition the array (i.e move the elements in "nums") such that: All elements < k are moved to the left 阅读全文
posted @ 2016-04-03 19:03 哥布林工程师 阅读(195) 评论(0) 推荐(0) 编辑
摘要: Given a string s, cut s into some substrings such that every substring is a palindrome. Return the minimum cuts needed for a palindrome partitioning o 阅读全文
posted @ 2016-04-03 18:56 哥布林工程师 阅读(122) 评论(0) 推荐(0) 编辑
摘要: Given a string s, partition s such that every substring of the partition is a palindrome. Return all possible palindrome partitioning of s. Example Gi 阅读全文
posted @ 2016-04-03 16:09 哥布林工程师 阅读(112) 评论(0) 推荐(0) 编辑
摘要: Implement a function to check if a linked list is a palindrome. Example Given 1->2->1, return true Given 1->2->1, return true Given 1->2->1, return tr 阅读全文
posted @ 2016-04-03 14:21 哥布林工程师 阅读(155) 评论(0) 推荐(0) 编辑
摘要: There are a row of n houses, each house can be painted with one of the three colors: red, blue or green. The cost of painting each house with a certai 阅读全文
posted @ 2016-04-03 13:42 哥布林工程师 阅读(151) 评论(0) 推荐(0) 编辑
摘要: Given a set of n nuts of different sizes and n bolts of different sizes. There is a one-one mapping between nuts and bolts. Comparison of a nut to ano 阅读全文
posted @ 2016-04-03 13:18 哥布林工程师 阅读(181) 评论(0) 推荐(0) 编辑
摘要: Given an interval list which are flying and landing time of the flight. How many airplanes are on the sky at most? Notice If landing and flying happen 阅读全文
posted @ 2016-04-02 07:38 哥布林工程师 阅读(182) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 23 下一页