Home
Projects
Resources
Alternatives
Blog
Sign In
SherlockUnknowEn Leetcode
Save
使用C++和python刷leetcode题目
Overview
Reviews
Resources
Project README
1.
5.Longest Palindrome Substring
查找字符串中最长回文
2.
4.Median of Two Sorted Arrays
查找两个已排序数组的中位数
3.
3.Longest Substring Without Repeating
查找字符串中的最长不重复子串的长度
4.
8.String to Integer(atio)
手动实现atio函数,转换str到int
5.
9.Palindrome Number
判断一个整数是否为回文数,不使用额外变量
6.
617.Merge Two Binary Trees
合并两棵二叉树
7.
10.Regular Expression Matching
实现.*正则表达式匹配函数
8.
2.Add Two Numbers
将两个链表整数相加
9.
1.Two Sum
从数组中寻找和的相加数
10.
7.Reverse Integer
反转整数
11.
11.Container With Most Water
容器最大盛水量问题
12.
12.Integer to Roman
阿拉伯数字转换成罗马数字
13.
13.Roman to Integer
罗马数字转换成阿拉伯数字
14.
14.Longest Common Prefix
字符串数组最长公共前缀
15.
15.3Sum
三元组相加获得target
16.
16.3Sum Closest
三元组相加获得结果最接近target
17.
17.Letter Combinations of a Phone Number
九宫格数字键盘字符组合
18.
18.4Sum
四元组相加获得target
19.
19.Remove Nth Node From End of List
移除链表倒数第n个元素
20.
20.Valid Parentheses
验证大小中括号是否成对闭合匹配
21.
21.Merge Two Sorted Lists
合并两个已排序的链表
22.
22.Generate Parentheses
构造n个成对括号
23.
23.Merge k Sorted Lists
合并n个已排序的链表
24.
24.Swap Nodes in Pairs
成对交换链表节点
25.
25.Reverse Nodes in k-Group
k组倒置链表节点
26.
26.Remove Duplicates from Sorted Array
移除数组中重复元素
27.
29.Divide Two Integers
两数相除——不允许使用高级运算
28.
30.Substring with Concatenation of All Words
寻找所有词串联的子串的位置
29.
31.Next Permutation
数字数组的下一个最小排列
30.
32.Longest Valid Parentheses
求最长的括弧匹配子串的长度
31.
33.Search in Rotated Sorted Array
反转内数组搜寻元素
32.
Search for a Range
查找元素在数组中的位置范围
33.
35.Search Insert Position
查找元素插入的位置
34.
36.Valid Sudoku
验证数独题目是否合规
35.
37.Sudoku Solver
数独解题器
36.
38.Count and Say
报数
37.
39.Combination Sum
组合总数
38.
40.Combination Sum II
组合总数 II
39.
41.First Missing Positive
缺失的第一个正数
40.
42.Trapping Rain Water
接雨水
41.
43.Multiply Strings
字符串相乘
42.
45.Jump Game II
跳跃游戏II
43.
55.Jump Game I
跳跃游戏I
44.
53.Maximum Subarray
最大子序列和
45.
48.Rotate Image
旋转图像
46.
54.Spiral Matrix
螺旋矩阵
47.
56.Merge Intervals
合并区间
48.
57.Insert Intervals
插入区间
49.
59.Spiral Matrix II
螺旋矩阵II
50.
62.Unique Paths
不同路径
51.
63.Unique Paths II
不同路径II
52.
64.Minimum Path Sum
最短路径和
53.
66.Plus One
加一
54.
73.Set Matrix Zeroes
矩阵置零
55.
74.Search a 2D Matrix
搜索二维矩阵
56.
75.Sort Colors
颜色排序
57.
78.Subsets
子集
58.
79.Word Search
单词搜索
59.
80.Remove Duplicates from Sorted Array II
删除排序数组中的重复项 II
60.
141.Linked List Cycle
环形链表
61.
142.Linked List Cycle II
环形链表 II
62.
160.Intersection of Two Linked Lists
相交链表
63.
876.Middle of the Linked List
链表的中间结点
64.
92.Reverse Linked List II
反转链表 II
65.
83.Remove Duplicates from Sorted List
删除排序链表中的重复元素
66.
86.Partition List
分隔链表
67.
138.Copy List with Random Pointer
复制带随机指针的链表
其余未整理的题集,仅有代码
Open Source Agenda is not affiliated with "SherlockUnknowEn Leetcode" Project. README Source:
SherlockUnknowEn/leetcode
Stars
31
Open Issues
0
Last Commit
1 year ago
Repository
SherlockUnknowEn/leetcode
Tags
Cpp
Leetcode
Python Leetcode
Python3
Open Source Agenda Badge
Submit Review
Review Your Favorite Project
Submit Resource
Articles, Courses, Videos
Submit Article
Submit a post to our blog
From the blog
Dec 11, 2022
How to Choose Which Programming Language to Learn First?
From the blog
Dec 11, 2022
How to Choose Which Programming Language to Learn First?
Home
Projects
Resources
Alternatives
Blog
Sign In
Sign In to OSA
I agree with
Terms of Service
and
Privacy Policy
Sign In with Github