Skip to content

🌱 A collection of data-structures and alogorithms with java,solution for leetcode

Notifications You must be signed in to change notification settings

mstao/data-structures

Repository files navigation

data-structures

A collection of data-structures with java, I also wrote a series of articles:

I use this tool to draw structure diagrams, thanks.

Data Structure Category

Algorithm Category

字符串

数组

题名 代码链接 LeetCode链接
26.删除有序数组中的重复项 代码 链接
80.删除有序数组中的重复项 II 代码 链接
283.移动零 代码 链接
448.找到所有数组中消失的数字 代码 链接
56.合并区间 代码 链接

排列

题名 代码链接 LeetCode链接
31.下一个排列 代码 链接

链表

题名 代码链接 LeetCode链接
21.合并两个有序链表 代码 链接
82.删除排序链表中的重复元素 II 代码 链接
83.删除排序链表中的重复元素 代码 链接
141.环形链表 代码 链接
160.相交链表 代码 链接
206.反转链表 代码 链接
92.反转链表II 代码 链接
234.回文链表 代码 链接
148.排序链表 代码 链接
剑指Offer22.链表中倒数第k个节点 代码 链接

题名 代码链接 LeetCode链接
155.最小栈 代码 链接
232.用栈实现队列 代码 链接
20.有效的括号 代码 链接

二叉树

题名 代码链接 LeetCode链接
101.对称二叉树 代码 链接
104.二叉树的最大深度 代码 链接
226.翻转二叉树 代码 链接
617.合并二叉树 代码 链接

题名 代码链接 LeetCode链接
200.岛屿数量 代码 链接

递归

题名 代码链接 LeetCode链接
206.反转链表 代码 链接
101.对称二叉树 代码 链接
104.二叉树的最大深度 代码 链接
226.翻转二叉树 代码 链接
617.合并二叉树 代码 链接

动态规划

题名 代码链接 LeetCode链接
53.最大子序和 代码 链接
70.爬楼梯 代码 链接

位运算

题名 代码链接 LeetCode链接
461.汉明距离 代码 链接

搜索

题名 代码链接 LeetCode链接
74.搜索二维矩阵 代码 链接
240.搜索二维矩阵 II 代码 链接

盛水容器

题名 代码链接 LeetCode链接
240.搜索二维矩阵 II 代码 链接

简单题不易做

About

🌱 A collection of data-structures and alogorithms with java,solution for leetcode

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published