算法
文章平均质量分 74
caicai617
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
八大排序算法的Python及C++实现
冒泡 [code=python] def Bubble(array): n = len(array) for i in range(n-1): for j in range(n-1,i,-1): if array[j] array[j], array[j-1] = array[j-1], arr原创 2016-05-07 18:02:41 · 271 阅读 · 0 评论 -
Leetcode 206. Reverse Linked List cpp实现
据说是一道挺重要的题,一定背下来嗯…… /** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} * }; */ class Solution { pub原创 2016-05-08 00:35:51 · 373 阅读 · 0 评论 -
Ugly Number(丑数)系列题 Python解法
Leetcode 263. Ugly Number class Solution(object): def isUgly(self, num): """ :type num: int :rtype: bool """ if num <= 0: return False原创 2016-05-08 14:27:16 · 3705 阅读 · 0 评论
分享