资讯专栏INFORMATION COLUMN

leetcode 部分解答索引(持续更新~)

leo108 / 2790人阅读

摘要:前言从开始写相关的博客到现在也蛮多篇了。而且当时也没有按顺序写现在翻起来觉得蛮乱的。可能大家看着也非常不方便。所以在这里做个索引嘻嘻。顺序整理更新更新更新更新更新更新更新更新更新更新更新更新更新更新更新更新

前言

从开始写leetcode相关的博客到现在也蛮多篇了。而且当时也没有按顺序写~现在翻起来觉得蛮乱的。可能大家看着也非常不方便。所以在这里做个索引嘻嘻。

顺序整理 1~50

1 Two Sum

2 Add Two Numbers

3 Longest Substring Without Repeating Characters

5 Longest Palindromic Substring(03-01更新)

6 ZigZag Conversion(03-04更新)

7 Reverse Integer

9 Palindrome Number

11 Container With Most Water

12 Integer to Roman(03-08更新)

13 Roman to Integer

14 Longest Common Prefix

15 3Sum

16 3Sum Closest

17 Letter Combinations of a Phone Number(03-09更新)

18 4Sum

19 Remove Nth Node From End of List(03-11更新)

20 Valid Parentheses

21 Merge Two Sorted Lists

22 Generate Parentheses(03-13更新)

24 Swap Nodes in Pairs(03-14更新)

27 Remove Element

28 Implement strStr()

29 Divide Two Integers(03-17更新)

31 Next Permutation

34 Search for a Range

35 Search Insert Position

36 Valid Sudoku(03-18更新)

38 count and say

39 Combination Sum

40 Combination Sum II

43 Multiply Strings(03-23更新)

46 Permutations(03-29更新)

47 Permutations II(05-04更新)

48 Rotate Image

49 Group Anagrams(07-14更新)

50 Pow(x, n)(07-15更新)

50~100

53 Maximum Subarray

58 length of the last word

66 Plus One

67 Add Binary

88 Merge Sorted Array

100+

118&119 Pascal"s Triangle

121 Best Time to Buy and Sell Stock

167 Two Sum II - Input array is sorted

169 Majority Element

198 House Robber(03-25更新)

217 Contains Duplicate

219 Contains Duplicate II

268 Missing Number

283 Move Zeroes

414 Third Maximum Number

416 Partition Equal Subset Sum(03-26更新)

448 Find All Numbers Disappeared in an Array

532 K-diff Pairs in an Array

566 Reshape the Matrix

581 Shortest Unsorted Continuous Subarray

605 Can Place Flowers

628 Maximum Product of Three Numbers

643 Maximum Average Subarray I

661 Image Smoother

665 Non-decreasing Array

695 Max Area of Island

697 Degree of an Array

724 Find Pivot Index

766 Toeplitz Matrix

文章版权归作者所有,未经允许请勿转载,若此文章存在违规行为,您可以联系管理员删除。

转载请注明本文地址:https://www.ucloud.cn/yun/68609.html

相关文章

  • JS算法题之leetcode(11~20)

    摘要:给定一个整数,将其转为罗马数字。字符数值例如,罗马数字写做,即为两个并列的。通常情况下,罗马数字中小的数字在大的数字的右边。给定一个罗马数字,将其转换成整数。注意空字符串可被认为是有效字符串。 JS算法题之leetcode(11~20) showImg(https://segmentfault.com/img/bVbwmfg?w=1790&h=714);这次的十道题目都比较容易,我们简...

    CoderDock 评论0 收藏0
  • LeetCode 之 JavaScript 解答第69题 —— X 的平方根(Squrt(x))

    摘要:测试用例输入输入输入负数的输入平方根为正整数的输入平方根为小数的代码实现写二分查找代码需要注意的三点循环退出条件。使用二分查找之前,判断问题是否满足二分查找的要求。 Time:2019/4/17Title: sqrt(x)Difficulty: EasyAuthor: 小鹿 题目:sqrt(x) Implement int sqrt(int x). Compute and retu...

    sf_wangchong 评论0 收藏0
  • LeetCode 之 JavaScript 解答第142题 —— 环形链表 II(Linked Li

    摘要:说明不允许修改给定的链表。算法思路题目要求返回单链表中存在循环链表的位置。首先,先判断该单链表是否存在循环链表用两个快慢指针分别指向链表的头部,每次移动两步,每次移动一步,移动的步数是的两倍。 Time:2019/4/8Title: Linked List Cycle IIDifficulty: mediumAuthor:小鹿 题目:Linked List Cycle II Giv...

    whidy 评论0 收藏0
  • 我理解的数据结构(八)—— 线段树(SegmentTree)

    摘要:示例解题代码注意,如果要在上提交解答,必须把接口和类的代码一并提交,这里并没有在写类中 我理解的数据结构(八)—— 线段树(SegmentTree) 一、什么是线段树 1.最经典的线段树问题:区间染色有一面墙,长度为n,每次选择一段墙进行染色,m次操作后,我们可以看见多少种颜色?m次操作后,我们可以在[i, j]区间内看见多少种颜色?showImg(https://segmentfau...

    waltr 评论0 收藏0
  • 我理解的数据结构(八)—— 线段树(SegmentTree)

    摘要:示例解题代码注意,如果要在上提交解答,必须把接口和类的代码一并提交,这里并没有在写类中 我理解的数据结构(八)—— 线段树(SegmentTree) 一、什么是线段树 1.最经典的线段树问题:区间染色有一面墙,长度为n,每次选择一段墙进行染色,m次操作后,我们可以看见多少种颜色?m次操作后,我们可以在[i, j]区间内看见多少种颜色?showImg(https://segmentfau...

    shaonbean 评论0 收藏0

发表评论

0条评论

leo108

|高级讲师

TA的文章

阅读更多
最新活动
阅读需要支付1元查看
<