Skip to content

HungYann/gitbook

Repository files navigation

Leetcode刷题计划

Website address: https://liu-hongyang.github.io/gitbook/

已解决的问题:

# Title
1 Two Sum
7 Reverse Integer
9 Palindrome Number
13 Roman to Integer
14 Longest Common Prefix
21 Merge Two Sorted Lists
26 Remove Duplicates from Sorted Array
27 Remove Element
28 Implement strStr()
35 Search Insert Position
58 Length of Last Word
237 Delete Node in a Linked List
704 Binary Search

数据结构:

数组:

# Title
1 Two Sum
26 Remove Duplicates from Sorted Array
27 Remove Element
35 Search Insert Position
链表
# Title
21 Merge Two Sorted Lists
237 Delete Node in a Linked List

算法

动态规划


刷题步骤

在刷的过程中,我会按照如下规则记录自己的刷题步骤:

  • 1.原题目(简单,中等,困难)
  • 2.自己的解法第一遍
  • 3.网上好的解法
  • 4.自己可以改进的地方
  • 5.进一步精简优化自己的代码直至代码简无可简
  • 6.获得的思考

为什么刷Leetcode?

刷Leetcode的目的在于:

  • 希望通过刷Leetcode可以锻炼自己的算法能力。
  • 可以通过大厂算法面试
  • 在工作以后再也没有时间刷算法
  • 坚持一件事,并把它做好