Skip to content

LibertyDream/algorithm_data_structure

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

算法与数据结构 process

一些常见数据结构与算法的白板实现,数据结构有 Java 1.8、Python 3.6 两种实现。算法题使用 Python 3.6 作答

数据结构 JAVA Python
数组 Array Array
ArrayStack,LinkedListStack ArrayStack,LinkedListStack
队列 ArrayQueue,LoopQueue,LinkedListQueue ArrayQueue,LoopQueue,LinkedListQueue
链表 LinkedList LinkedList
二分搜索树 BST BST
集合 BSTSet,LinkedListSet,AVLSet BSTSet,LinkedListSet,AVLSet
映射 LinkedListMap,BSTMap,AVLMap LinkedListMap,BSTMap,AVLMap
优先队列和堆 MaxHeap,PriorityQueue MaxHeap,PriorityQueue,IndexMaxHeap
线段树 SegmentTree SegmentTree
Trie 字典树 Trie Trie
并查集 UnionFind UnionFind
AVL AVL AVL
红黑树 RBTree RBTree
哈希表 HashTable HashTable

算法

排序
名称 时间复杂度 空间复杂度 原地排序 稳定排序
选择排序 O(n^2) O(1)
插入排序 O(n^2) O(1)
冒泡排序 O(n^2) O(1)
归并排序 O(nlogn) O(n) ×
快速排序 O(nlogn) O(logn) ×
堆排序 O(nlogn) O(1) ×

图论

编程习题

剑指offer

知识基础
高质量代码:规范,完整,鲁棒
解决问题的思路:画图、举例、分解子问题
时间和空间效率
知识迁移能力
抽象建模能力

About

Implementation of common algorithms and data structures , solutions on LeetCode and the others

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published