Coding Practice
玥晓珖
一起学习深度学习
展开
-
python算法综合(不断更新)
半年没怎么摸代码的我去裸面字节提前批了~ What a shamefuldayforme!面试就出了一个看起来很简单的题,题目就是生成螺旋矩阵, 虽然感觉再给我放水,但是抱歉,我好像简单的划水都没学好。。。今后努力刷算法题copy个6阶的螺旋矩阵过来~[[ 1. 2. 3. 4. 5. 6.] [20. 21. 22. 23. 24. 7.] [19. 32. 33. 34. 25. 8.] [18. 31. 36. 35. 26. 9.] [17. 30. 29...原创 2020-07-17 11:39:13 · 402 阅读 · 0 评论 -
1.sorts method python (9)merge_sort
归并排序:原理:https://www.cnblogs.com/chengxiao/p/6194356.html这应该是我写的最蠢的一个代码了,不,可能以后还能写出更蠢的。。。。冗长,只能实现2**n 次方数组排序。。。准备接受鄙视了...# -*- coding: utf-8 -*-"""Created on Wed Jul 31 10:14:28 2019@author:...原创 2019-09-12 10:52:32 · 281 阅读 · 0 评论 -
1.sorts method python (8)quick_sort
快排序原理https://www.cnblogs.com/yangecnu/p/Introduce-Quick-Sort.htmlmy stupid code:# -*- coding: utf-8 -*-"""Created on Wed Jul 31 10:14:28 2019@author: yue zhangE-mails: yuezh2015@163.com"...原创 2019-09-02 10:29:25 · 315 阅读 · 0 评论 -
1.sorts method python (7)counting_sort
计数排序Counting sort 原理:https://blog.csdn.net/weililansehudiefei/article/details/71941188my stupid code:# -*- coding: utf-8 -*-"""Created on Wed Aug 14 14:47:01 2019@author: zhang"""import ...原创 2019-08-15 05:38:37 · 205 阅读 · 0 评论 -
1.sorts method python (3)bubble_sort
原理:http://bubkoo.com/2014/01/12/sort-algorithm/bubble-sort/my stupid code:# -*- coding: utf-8 -*-"""Created on Wed Jul 31 10:14:28 2019@author: yue zhangE-mails: yuezh2015@163.com"""imp...原创 2019-08-02 01:10:48 · 255 阅读 · 0 评论 -
1.sorts method python (2)Bogo Sort
算法思想:https://blog.csdn.net/qq_38780163/article/details/80805545my stupid code# -*- coding: utf-8 -*-"""Created on Wed Jul 31 10:14:28 2019@author: yue zhangE-mails: yuezh2015@163.com"...原创 2019-08-01 21:36:31 · 220 阅读 · 0 评论 -
1.sorts method python (6)comb_sort
梳排序原理:https://blog.csdn.net/heyuchang666/article/details/50554251my stupid code:# -*- coding: utf-8 -*-"""Created on Wed Jul 31 10:14:28 2019@author: yue zhangE-mails: yuezh2015@163.com"...原创 2019-08-06 10:18:42 · 314 阅读 · 0 评论 -
1.sorts method python (5)cocktail_shaker_sort
鸡尾酒排序原理:http://bubkoo.com/2014/01/15/sort-algorithm/shaker-sort/双向冒泡排序 (Bidirectional Bubble Sort)、波浪排序 (Ripple Sort)、摇曳排序 (Shuffle Sort)、飞梭排序 (Shuttle Sort) 和欢乐时光排序 (Happy Hour Sort)my stupid cod...原创 2019-08-05 05:51:46 · 245 阅读 · 0 评论 -
1.sorts method python (4)bucket_sort
桶排序原理:https://blog.csdn.net/liaoshengshi/article/details/47320023my stupid code:需要指定桶个数# -*- coding: utf-8 -*-"""Created on Wed Jul 31 10:14:28 2019@author: yue zhangE-mails: yuezh2015@16...原创 2019-08-05 03:49:32 · 211 阅读 · 0 评论 -
1.sorts method python (1)Bitonic Sort
1. 双调排序: Bitonic Sorthttps://blog.csdn.net/xbinworld/article/details/76408595复杂度O(n(logn)(logn)):https://www.cnblogs.com/bester/archive/2011/12/20/3255783.html缺点:works only when size of input...原创 2019-07-31 21:55:10 · 217 阅读 · 0 评论