• Stars
    star
    192
  • Rank 202,019 (Top 4 %)
  • Language
    Python
  • License
    Apache License 2.0
  • Created about 5 years ago
  • Updated about 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

数据结构和算法必知必会的50个代码实现

微信搜索我的公众号“小争哥”,或者微信扫描下面二维码, 获取更多压箱底的干货分享

前Google工程师,5万+人跟着学的《数据结构和算法之美》专栏作者

t2

数组

  • 实现一个支持动态扩容的数组
  • 实现一个大小固定的有序数组,支持动态增删改操作
  • 实现两个有序数组合并为一个有序数组

链表

  • 实现单链表、循环链表、双向链表,支持增删操作
  • 实现单链表反转
  • 实现两个有序的链表合并为一个有序链表
  • 实现求链表的中间结点

  • 用数组实现一个顺序栈
  • 用链表实现一个链式栈
  • 编程模拟实现一个浏览器的前进、后退功能

队列

  • 用数组实现一个顺序队列
  • 用链表实现一个链式队列
  • 实现一个循环队列

递归

  • 编程实现斐波那契数列求值f(n)=f(n-1)+f(n-2)
  • 编程实现求阶乘n!
  • 编程实现一组数据集合的全排列

排序

  • 实现归并排序、快速排序、插入排序、冒泡排序、选择排序
  • 编程实现O(n)时间复杂度内找到一组数据的第K大元素

二分查找

  • 实现一个有序数组的二分查找算法
  • 实现模糊二分查找算法(比如大于等于给定值的第一个元素)

散列表

  • 实现一个基于链表法解决冲突问题的散列表
  • 实现一个LRU缓存淘汰算法

字符串

  • 实现一个字符集,只包含a~z这26个英文字母的Trie树
  • 实现朴素的字符串匹配算法

二叉树

  • 实现一个二叉查找树,并且支持插入、删除、查找操作
  • 实现查找二叉查找树中某个节点的后继、前驱节点
  • 实现二叉树前、中、后序以及按层遍历

  • 实现一个小顶堆、大顶堆、优先级队列
  • 实现堆排序
  • 利用优先级队列合并K个有序数组
  • 求一组动态数据集合的最大Top K

  • 实现有向图、无向图、有权图、无权图的邻接矩阵和邻接表表示方法
  • 实现图的深度优先搜索、广度优先搜索
  • 实现Dijkstra算法、A*算法
  • 实现拓扑排序的Kahn算法、DFS算法

回溯

  • 利用回溯算法求解八皇后问题
  • 利用回溯算法求解0-1背包问题

分治

  • 利用分治算法求一组数据的逆序对个数

动态规划

  • 0-1背包问题
  • 最小路径和
  • 编程实现莱文斯坦最短编辑距离
  • 编程实现查找两个字符串的最长公共子序列
  • 编程实现一个数据序列的最长递增子序列

More Repositories

1

labuladong-fucking-algorithm

691
star
2

gaoxiang12-slambook

C++
238
star
3

jlevy-the-art-of-command-line

166
star
4

dragen1860-Deep-Learning-with-TensorFlow-book

Python
119
star
5

StevenLei2017-AI_projects

Jupyter Notebook
103
star
6

floodsung-Deep-Learning-Papers-Reading-Roadmap

Python
99
star
7

ShusenTang-Dive-into-DL-PyTorch

Jupyter Notebook
80
star
8

imhuay-Algorithm_Interview_Notes-Chinese

Python
78
star
9

ildoonet-tf-pose-estimation

Python
68
star
10

hoya012-deep_learning_object_detection

50
star
11

scutan90-DeepLearning-500-questions

44
star
12

fighting41love-funNLP

Python
28
star
13

ahong007007-Awesome_Computer_Vision

28
star
14

justjavac-free-programming-books-zh_CN

26
star
15

FavioVazquez-ds-cheatsheets

26
star
16

ddbourgin-numpy-ml

Python
25
star
17

dragen1860-TensorFlow-2.x-Tutorials

Jupyter Notebook
24
star
18

longpeng2008_yousan-ai

Python
22
star
19

SnailTyan-deep-learning-papers-translation

21
star
20

jbhuang0604-awesome-computer-vision

18
star
21

MorvanZhou-Reinforcement-learning-with-tensorflow

Python
14
star
22

TensorFlow2.0Tutorials

Jupyter Notebook
11
star
23

foolwood-benchmark_results

10
star
24

ritchieng-the-incredible-pytorch

9
star
25

kmario23-deep-learning-drizzle

9
star
26

rasbt-deeplearning-models

Jupyter Notebook
9
star
27

HCIILAB-Scene-Text-Detection

8
star
28

benedekrozemberczki-awesome-graph-classification

8
star
29

xinghaochen-awesome-hand-pose-estimation

Python
8
star
30

extreme-assistant-cvpr2019

7
star
31

STVIR-pysot

Python
7
star
32

jindongwang-MachineLearning

7
star
33

Deep-Learning-for-Medical-Applications

TeX
6
star
34

yanshengjia-ml-road

Python
6
star
35

eriklindernoren-PyTorch-GAN

Python
5
star
36

jindongwang-activityrecognition

MATLAB
5
star
37

ouyanghuiyu-chineseocr_lite

C++
5
star
38

HaydenFaulkner-pytorch.repmet

Python
4
star
39

ahong007007-awesomeCV

3
star
40

MarkMoHR-Awesome-Sketch-Synthesis

3
star
41

HuaizhengZhang-Awsome-Deep-Learning-for-Video-Analysis

3
star
42

erhwenkuo-deep-learning-with-keras-notebooks

Jupyter Notebook
3
star
43

khanhnamle1994-computer-vision

Jupyter Notebook
2
star
44

Duankaiwen-CenterNet

Python
2
star
45

hankcs-HanLP

Java
2
star
46

dbolya-yolact

Python
2
star
47

awesome-semantic-segmentation

2
star
48

PanJinquan-Face_Detection_Recognition

Python
2
star
49

yongyehuang-Tensorflow-Tutorial

Jupyter Notebook
2
star
50

Hierarchical-BiLSTM-CNN

2
star
51

researchmm-SiamDW

Python
2
star
52

JiahuiYu-generative_inpainting

Python
2
star
53

lessw2020-Best-Deep-Learning-Optimizers

Jupyter Notebook
2
star
54

hjjhjh-rspaper

2
star
55

the-gan-zoo

Python
2
star
56

Tencent-PocketFlow

Python
1
star
57

kamidox-stock-analysis

Jupyter Notebook
1
star
58

zc402-ChineseTrafficPolicePose

Jupyter Notebook
1
star
59

huggingface-transformers

Python
1
star
60

eriklindernoren-Keras-GAN

Python
1
star
61

jiajunhua474833

1
star
62

MaurizioFD-RecSys2019_DeepLearning_Evaluation

Python
1
star
63

scikit-learn-in-python

Python
1
star
64

gitdemo

1
star
65

deepmind-dm_control

Python
1
star
66

orange3_474833

Python
1
star
67

hanbt-learn_dl

Python
1
star
68

dennybritz-reinforcement-learning

Jupyter Notebook
1
star
69

kozistr-Awesome-GANs

Python
1
star
70

zhaocq-nlp-NJUNMT-tf

Python
1
star
71

VideoRecognitionTracking

C++
1
star
72

amusi-daily-paper-computer-vision-new

1
star
73

facebookresearch-VideoPose3D

Python
1
star
74

ming71-toolbox

Python
1
star
75

facebookresearch-MUSE

Python
1
star
76

SiamMask

Python
1
star
77

chineseocr-chineseocr

Jupyter Notebook
1
star
78

aymericdamien-TensorFlow-Examples

Jupyter Notebook
1
star
79

d2l-ai-d2l-zh

Python
1
star
80

aitorzip-PyTorch-SRGAN

Python
1
star
81

xfgryujk-VehicleDetection

C++
1
star
82

amusi-awesome-object-detection

1
star
83

MorvanZhou-tutorials

Python
1
star
84

jiqizhixin-ML-Tutorial-Experiment

Jupyter Notebook
1
star
85

wizyoung-YOLOv3_TensorFlow

Python
1
star
86

CV-Backbones

Python
1
star