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 ...
[LeetCode] 163. Missing Ranges_Easy tag: array [LeetCode] 681. Next Closest Time_Medium tag: array, sort [LeetCode] 833. Find And Replace in String_Medium tag: array [LeetCode] 289. Game of Life_Medium tag: array [LeetCode] 766. Toeplitz Matrix_Easy tag: array2. Sorted arrayRotate...
2、Add Two Numbers 题意:链表形式模拟高精度加法,表头为低位 解法:模拟,注意进位细节 我的代码: View Code 九章最优解:(虽然思路一样,但是写法被秒杀。。好在我的更快一些) View Code 3、Longest Substring Without Repeating Characters 题意:找出最长的无重复字符的子串的长度 我的思路:暴搜,另开一标志数组...
前半部分为X,后半部分为O显式二分法:Leetcode 34. Find First and Last Position of Element in S...
Missing Element in Sorted Array Leetcode 1062. Longest Repeating Substring Leetcode 1891. Cutting Ribbons Leetcode 410. Split Array Largest Sum (与1891类似) 双指针(2 Pointer): 基础知识:常见双指针算法分为三类,同向(即两个指针都相同一个方向移动),背向(两个指针从相同或者相邻的位置出发,背向移动...
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...
Lecture 32 Introduction To The Problem And Brute Force Approach Lecture 33 Optimal Solution Intuition Lecture 34 Optimal solution pseudocode walkthrough Lecture 35 Implementing the code Section 8: Microsoft Math Question: Missing Number (Easy-ish) Lecture 36 Introduction to the problem Lecture 37 Approa...
268.Missing-Number (H-) 287.Find-the-Duplicate-Number (H) 442.Find-All-Duplicates-in-an-Array (M) 448.Find-All-Numbers-Disappeared-in-an-Array (M) 645.Set-Mismatch (M) 2471.Minimum-Number-of-Operations-to-Sort-a-Binary-Tree-by-Level (M+) 2459.Sort-Array-by-Moving-Items-to-Empty...
3 Longest Substring Without Repeating Characters 20.60% Medium 2 Add Two Numbers 21.10% Medium 1 Two Sum 17.70% Medium WeChat Official Subscription Account Welcome to follow my subscription account on Wechat, I will update the newest updated problem solution and explanation. And also welcome to ad...
1060 Missing Element in Sorted Array 54.5% Medium 1061 Lexicographically Smallest Equivalent String 65.2% Medium 1062 Longest Repeating Substring 57.2% Medium 1063 Number of Valid Subarrays 71.1% Hard 1064 Fixed Point 66.5% Easy 1065 Index Pairs of a String 60.6% Easy 1066 Campus Bikes ...