Giter Club home page Giter Club logo

leetcode's Introduction

LeetCode题解目录

难度:简单

9.回文数

13.罗马数字转整数

14.最长公共前缀

17.键盘映射

20.有效括号

21.合并两个有序链表

26.删除排序数组中的重复项

27.移除元素

28.实现strStr(indexOf)函数

35.搜索插入位置

38.外观数列

53.最大子序和

61.加一

67.二进制求和

69. x 的平方根

70.爬楼梯

83. 删除排序链表中的重复元素

88. 合并两个有序数组

100.相同的树

101.对称二叉树

104、二叉树的最大深度

107、二叉树的层次遍历||

108. 将有序数组转换为二叉搜索树

110.平衡二叉树

111.二叉树的最小深度

112.路径总和

118.杨辉三角

119.杨辉三角||

121. 买卖股票的最佳时机

122. 买卖股票的最佳时机||

125. 验证回文串

136. 只出现一次的数字

141.环形链表

155.最小栈

160.相交链表

167. 两数之和 II - 输入有序数组

168. Excel表列名称

169.多数元素

171. Excel表列序号

172. 阶乘后的零

189. 旋转数组

190. 颠倒二进制位

191. 位1的个数

198. 打家劫舍

202. 快乐数

203. 移除链表元素

204. 计数质数

205. 同构字符串

206. 反转链表

217. 存在重复元素

219. 存在重复元素 II

225. 用队列实现栈

226. 翻转二叉树

231. 2的幂

232. 用栈实现队列

234. 回文链表

235. 二叉搜索树的最近公共祖先

237. 删除链表中的节点

242. 有效的字母异位词

257. 二叉树的所有路径

258. 各位相加

263. 丑数( Ugly Number)

268. 缺失数字(Missing Number)

278. 第一个错误的版本(First Bad Version)

283. 移动零(move Zeroes)

290. 单词规律( Word Pattern)

292. Nim 游戏 (Nim Game)

303. 区域和检索 - 数组不可变(Range Sum Query - Immutable)

349. 两个数组的交集( Intersection of Two Arrays)

326. 3的幂(Power of Three)

342. 4的幂(Power of Four)

344. 反转字符串( Reverse String)

345. 反转字符串中的元音字母(Reverse Vowels of a String)

350. 两个数组的交集 II(Intersection of Two Arrays II)

367. 有效的完全平方数(Valid Perfect Square)

371. 两整数之和(Sum of Two Integers)

374. 猜数字大小(Guess Number Higher or Lower)

383. 赎金信(Ransom Note)

441. 排列硬币(Arranging Coins)

387. 字符串中的第一个唯一字符(First Unique Character in a String)

389. 找不同(Find the Difference)

392. 判断子序列(Is Subsequence)

404. 左叶子之和(Sum of Left Leaves)

405. 数字转换为十六进制数(Convert a Number to Hexadecimal)

409. 最长回文串(Longest Palindrome)

412. Fizz Buzz

414. 第三大的数 (Third Maximum Number)

415. 字符串相加( Add Strings)

434. 字符串中的单词数( Number of Segments in a String)

437. 路径总和 III(Path Sum III)

441. 排列硬币(Arranging Coins)

443. 压缩字符串(String Compression)

448. 找到所有数组中消失的数字( Find All Numbers Disappeared in an Array)

453. 最小移动次数使数组元素相等 (Minimum Moves to Equal Array Elements)

455. 分发饼干(Assign Cookies)

459. 重复的子字符串( Repeated Substring Pattern)

461. 汉明距离(Hamming Distance)

463. 岛屿的周长(Island Perimeter)

475. 供暖器(Heaters)

476. 数字的补数( Number Complement)

482. 密钥格式化(License Key Formatting)

485. 最大连续1的个数(Max Consecutive Ones)

492. 构造矩形( Construct the Rectangle)

496. 下一个更大元素 I(Next Greater Element I)

500. 键盘行( Keyboard Row)findWords

501. 二叉搜索树中的众数(Find Mode in Binary Search Tree)

504. 七进制数( Base 7)

506. 相对名次(Relative Ranks)

557.反转字符串中的单词

难度:中等

2. 两数相加(Add Two Numbers)

5. 最长回文子串( Longest Palindromic Substring)

6. Z 字形变换(ZigZag Conversion)

8. 字符串转换整数(String to Integer)

11. 盛最多水的容器(Container With Most Water)

12. 整数转罗马数字(Integer to Roman)

15. 三数之和(3Sum)

16. 最接近的三数之和(3Sum Closest)

19. 删除链表的倒数第N个节点(Remove Nth Node From End of List)

22. 括号生成(Generate Parentheses)

24. 两两交换链表中的节点(Swap Nodes in Pairs)

29. 两数相除(Divide Two Integers)

31. 下一个排列( Next Permutation)

33. 搜索旋转排序数组(Search in Rotated Sorted Array)

34. 在排序数组中查找元素的第一个和最后一个位置(Find First and Last Position of Element in Sorted Array)

贪心算法

134. 加油站( Gas Station)

605. 种花问题(Can Place Flowers)

860. 柠檬水找零(Lemonade Change)

874. 模拟行走机器人(Walking Robot Simulation)

困难

45. 跳跃游戏 II( Jump Game II) - 困难

leetcode's People

Contributors

294733692 avatar

Watchers

James Cloos 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.