
lintcode
我不是狼
这个作者很懒,什么都没留下…
展开
-
leintcode Kth Largest Element python
Description Find K-th largest element in an array. 参考快速排序的思想 class Solution: """ @param n: An integer @param nums: An array @return: the Kth largest element """ def sort_in...原创 2019-04-28 13:38:07 · 242 阅读 · 0 评论 -
lintcode Ugly Number II python
Description Ugly number is a number that only have factors2,3and5. Design an algorithm to find thenth ugly number. The first 10 ugly numbers are1, 2, 3, 4, 5, 6, 8, 9, 10, 12... 利用动态规划的思想 d...原创 2019-04-28 13:45:20 · 200 阅读 · 0 评论