截止至今LeetCode题目总量已经有1582题
,估计将来每年平均增长300题
左右,大部分人肯定是刷不完的
,所以得有选择地刷LeetCode。
一种公认的刷题策略是按类别刷题
,可是每个类别也有许多题,在有限的时间里到底该刷哪些题呢
?个人根据LeetCode官方
给出的每个题目的出现频率
,整理并收录了每个类别里高频出现
的题目,对于官方统计频率太低的题目,不予收录,最终得到了这个高频题目表格。
例如,对于下图中题号#275
与#270
的题目将被收录,并且#275
出现频率大于#270
;而对于题号#1011
与#1182
的题目,因为出现频率太低,将不被收录:
撸起键盘加油干!祝大家成功上岸!整理不易,点个赞吧!
字符串篇-95题(String, 95 problems)
数据日期: 2020/03/26 (此时LeetCode题目数量:1582)
数据来源: LeetCode官方,将不同类别的题目按照官方给的出现频率(Frequency)降序排列,取有频率统计的题。
排序 | 题号 | 题目 | 通过率 | 难度 | 1#3Longest Substring Without Repeating Characters0.335中等2#5Longest Palindromic Substring0.291中等3#22Generate Parentheses0.737中等4#6ZigZag Conversion0.472中等5#13Roman to Integer0.611简单6#38Count and Say0.547简单7#17Letter Combinations of a Phone Number0.53中等8#93Restore IP Addresses0.462中等9#10Regular Expression Matching0.269困难10#72Edit Distance0.567困难11#20Valid Parentheses0.412简单12#415Add Strings0.497简单13#14Longest Common Prefix0.367简单14#67Add Binary0.523简单15#12Integer to Roman0.63中等16#43Multiply Strings0.42中等17#521Longest Uncommon Subsequence I0.666简单18#557Reverse Words in a String III0.699简单19#32Longest Valid Parentheses0.3困难20#30Substring with Concatenation of All Words0.299困难21#632Smallest Range Covering Elements from K Lists0.356困难22#541Reverse String II0.525简单23#76Minimum Window Substring0.355困难24#214Shortest Palindrome0.31困难25#564Find the Closest Palindrome0.147困难26#28Implement strStr()0.396简单27#657Robot Return to Origin0.738����,����简单28#647Palindromic Substrings0.613中等29#344Reverse String0.696简单30#97Interleaving String0.393困难31#49Group Anagrams0.612中等32#583Delete Operation for Two Strings0.486中等33#8String to Integer (atoi)0.194中等34#87Scramble String0.459困难35#58Length of Last Word0.328简单36#71Simplify Path0.388中等37#385Mini Parser0.396中等38#929Unique Email Addresses0.638简单39#804Unique Morse Code Words0.745简单40#91Decode Ways0.233中等41#65Valid Number0.187困难42#730Count Different Palindromic Subsequences0.473困难43#345Reverse Vowels of a String0.495简单44#383Ransom Note0.521简单45#556Next Greater Element III0.302中等46#696Count Binary Substrings0.511简单47#459Repeated Substring Pattern0.459简单48#686Repeated String Match0.337简单49#336Palindrome Pairs0.331困难50#539Minimum Time Difference0.541中等51#443String Compression0.396简单52#115Distinct Subsequences0.474困难53#44Wildcard Matching0.271困难54#125Valid Palindrome0.43简单55#434Number of Segments in a String0.342简单56#680Valid Palindrome II0.361简单57#537Complex Number Multiplication0.682中等58#553Optimal Division0.544中等59#606Construct String from Binary Tree0.527简单60#678Valid Parenthesis String0.304中等61#273Integer to English Words0.266困难62#520Detect Capital0.549简单63#68Text Justification0.429困难64#227Basic Calculator II0.349中等65#165Compare Version Numbers0.401中等66#387First Unique Character in a String0.44简单67#468Validate IP Address0.216中等68#126Word Ladder II0.318困难69#522Longest Uncommon Subsequence II0.317中等70#551Student Attendance Record I0.51简单71#527Word Abbreviation0.498困难72#151Reverse Words in a String0.369中等73#591Tag Validator0.297困难74#722Remove Comments0.276中等75#186Reverse Words in a String II0.738中等76#736Parse Lisp Expression0.398困难77#609Find Duplicate File in System0.521中等78#1065Index Pairs of a String0.5简单79#555Split Concatenated Strings0.331中等80#159Longest Substring with At Most Two Distinct Characters0.51中等81#1297Maximum Number of Occurrences of a Substring0.428中等82#616Add Bold Tag in String0.443中等83#1371Find the Longest Substring Containing Vowels in Even Counts0.412中等84#249Group Shifted Strings0.604中等85#544Output Contest Matches0.665中等86#271Encode and Decode Strings0.5中等87#293Flip Game0.712简单88#157Read N Characters Given Read40.505简单89#161One Edit Distance0.316中等90#340Longest Substring with At Most K Distinct Characters0.464困难91#635Design Log Storage System0.517中等92#158Read N Characters Given Read4 II - Call multiple times0.547困难93#681Next Closest Time0.477中等94#536Construct Binary Tree from String0.513中等95#408Valid Word Abbreviation0.307简单相关/参考链接
leetcode-cn
leetcode