Giter Site home page Giter Site logo

leetcode's Introduction

LeetCode

LeetCode Java/Golang solutions

LeetCode Algorithm

数组 - Array

# Title Solution Difficulty
1 两数之和 Java/Golang 简单
11 盛最多水的容器 Java/Golang 中等
26 删除有序数组中的重复项 Java/Golang 简单
41 缺失的第一个正数 Java/Golang 困难
42 接雨水 Java/Golang 困难
66 加一 Java/Golang 简单
88 合并两个有序数组 Java/Golang 简单
164 最大间距 Java/Golang 困难
169 多数元素 Java/Golang 简单
189 旋转数组 Java/Golang 中等
283 移动零 Java/Golang 简单

链表 - Linked List

# Title Solution Difficulty
21 合并两个有序链表 Java/Golang 简单

字符串 - String

# Title Solution Difficulty
49 字母异位词分组 Java/Golang 中等
242 有效的字母异位词 Java/Golang 简单

二叉树 - Binary Tree

# Title Solution Difficulty
94 二叉树的中序遍历 Java/Golang 简单
105 从前序与中序遍历序列构造二叉树 Java/Golang 中等
106 从中序与后序遍历序列构造二叉树 Java/Golang 中等
236 二叉树的最近公共祖先 Java/Golang 中等
429 N 叉树的层序遍历 Java/Golang 中等
589 N 叉树的前序遍历 Java/Golang 简单

二分查找 - Binary Search

# Title Solution Difficulty
33 搜索旋转排序数组 Java/Golang 中等
74 搜索二维矩阵 Java/Golang 中等
153 寻找旋转排序数组中的最小值 Java/Golang 中等

广度优先搜索 - Breadth-First Search

# Title Solution Difficulty
127 单词接龙 Java/Golang 困难

深度优先搜索 - Depth-First Search

# Title Solution Difficulty
200 岛屿数量 Java/Golang 中等
529 扫雷游戏 Java/Golang 中等

回溯 - Backtracking

# Title Solution Difficulty
22 括号生成 Java/Golang 中等
46 全排列 Java/Golang 中等
47 全排列 II Java/Golang 中等
77 组合 Java/Golang 中等
113 路径总和 II Java/Golang 中等

贪心 - Greedy

# Title Solution Difficulty
45 跳跃游戏 II Java/Golang 中等
55 跳跃游戏 Java/Golang 中等
455 分发饼干 Java/Golang 简单
860 柠檬水找零 Java/Golang 简单

动态规划 - Dynamic Programming

# Title Solution Difficulty
20 有效的括号 Java/Golang 简单
32 最长有效括号 Java/Golang 困难
64 最小路径和 Java/Golang 中等
72 编辑距离 Java/Golang 困难
91 解码方法 Java/Golang 中等
121 买卖股票的最佳时机 Java/Golang 简单
122 买卖股票的最佳时机 II Java/Golang 简单
152 乘积最大子数组 Java/Golang 中等
221 最大正方形 Java/Golang 中等
264 丑数 II Java/Golang 中等
647 回文子串 Java/Golang 中等

堆(优先队列)- Heap (Priority Queue)

# Title Solution Difficulty
378 有序矩阵中第 K 小的元素 Java 中等

leetcode's People

Contributors

colinting avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.