05 2017 档案

摘要:Given an array of citations (each citation is a non-negative integer) of a researcher, write a function to compute the researcher's h-index. According 阅读全文
posted @ 2017-05-23 23:50 bubbleStar 阅读(218) 评论(0) 推荐(0)
摘要:Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, 阅读全文
posted @ 2017-05-22 22:08 bubbleStar 阅读(156) 评论(0) 推荐(0)
摘要:Given a collection of distinct numbers, return all possible permutations. For example,[1,2,3] have the following permutations: 题解 该题是求所有可能的排列组合,是一道典型的 阅读全文
posted @ 2017-05-21 23:36 bubbleStar 阅读(113) 评论(0) 推荐(0)
摘要:Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers. If such arrangement is not possib 阅读全文
posted @ 2017-05-19 16:26 bubbleStar 阅读(95) 评论(0) 推荐(0)
摘要:该篇总结了leetcode中 78. Subsets 和 90. Subsets II,主要算法思想是DFS 78. Subsets Given a set of distinct integers, nums, return all possible subsets. Note: The solu 阅读全文
posted @ 2017-05-18 23:31 bubbleStar 阅读(331) 评论(0) 推荐(0)