![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据结构和算法
文章平均质量分 64
Genesislive
这个作者很懒,什么都没留下…
展开
-
快速排序Python实现
快速排序Python实现gist: https://gist.github.com/genesislive/5081031#!/usr/bin/env python# -*- coding: UTF-8 -*-__author__ = 'Genesislive'def partition(list, start, end): pivot = list[sta原创 2013-03-04 17:19:24 · 610 阅读 · 0 评论 -
KMP算法
KMP算法gist: https://gist.github.com/genesislive/5081013#include #include void get_nextval(const char *T, int nextval[]){ int j = 0, k = -1; nextval[0] = -1; while (T[j] !=原创 2013-03-03 14:24:29 · 551 阅读 · 0 评论 -
Solve Josephus Problem Using Erlang
Josephus(约瑟夫)问题的数学方法%%%----------------------------------------------------------------%%% @author Genesislive %%% [https://]%%% @copyright 2013 %%% @doc josephus problem%%% @end%%%------原创 2013-03-27 16:00:51 · 761 阅读 · 0 评论