Cyclic Sort (easy) Find the Missing Number (easy) Find all Missing Numbers (easy) Find the Duplicate Number (easy) Find all Duplicate Numbers (easy) 6. Pattern: In-place Reversal of a LinkedList,链表翻转 在众多问题中,题目可能需要你去翻转链表中某一段的节点。通常,要求都是你得原地翻转,就是...
//只是让 tail 的 next 指针指向了新节点,tail 本身并没有改变,它仍然指向原来的节点。你
1. Two Sum (两数之和), Easy, 11757 likes 2. Add Two Numbers (两数相加), Medium, 6524 likes 3. Longest Substring Without Repeating Characters (无重复字符的最长子串), Medium, 5845 likes 4. Median of Two Sorted Arrays (寻找两个正序数组的中位数), Hard, 4303 likes 5. Longest Palindromic...
Missing Number - https://leetcode.com/problems/missing-number/ Reverse Bits - https://leetcode.com/problems/reverse-bits/ Dynamic Programming Climbing Stairs - https://leetcode.com/problems/climbing-stairs/ Coin Change - https://leetcode.com/problems/coin-change/ Longest Increasing Subsequence -...
0002两数相加Add Two Numbers中等 0003无重复字符的最长子串Longest Substring Without Repeating Characters中等 0003无重复字符的最长子串longest-substring-without-repeating-charactersMediumjava 0007整数反转Reverse Integer简单 0008字符串转换整数(atoi)String To Interger Atoi中等Java、C ...
Update 0002-Add-Two-Numbers.md Jul 29, 2020 0003-Longest-Substring-Without-Repeating-Characters/Article 整理部分文件 Apr 16, 2020 0004-median-of-two-sorted-arrays Update 0004-median-of-two-sorted-arrays.md Jun 22, 2021 0005-Longest Palindromic Substring ...
[LeetCode] 系统刷题7_Array & numbers & string 2019-05-09 11:22 Johnson_强生仔仔 阅读(346) 评论(0) 编辑 收藏 举报 1. 2 D Array如果是在左上到右下的斜线的话,在同一条斜线上的x - y 相等, (x, y) 是该点的坐标 如果是在左下到右上的斜线的话,在同一条斜线上的x + y 相等, (x...
LeetCode 刷题随手记 - 第一部分 前 256 题(非会员),仅算法题,的吐槽 https://leetcode.com/problemset/algorithms/...
It must NOT contain three repeating characters in a row (“…aaa…” is weak, but “…aa…a…” is strong, assuming other conditions are met). Write a function strongPasswordChecker(s), that takes a string s as input, and return the MINIMUM change required to make s a strong pas...
1062 Longest Repeating Substring $ 58.40% Medium 1061 Lexicographically Smallest Equivalent String $ 66.90% Medium 1060 Missing Element in Sorted Array $ 54.80% Medium 1059 All Paths from Source Lead to Destination $ 43.00% Medium 1058 Minimize Rounding Error to Meet Target $ 43.70% Medium 1057 Ca...