您好,欢迎来到网暖!

当前位置:网暖 » 站长资讯 » 建站基础 » 网络技术 » 文章详细 订阅RssFeed

【leetcode】高频题目整理_字符串篇( High Frequency Problems, String )

来源:网络整理 浏览:283次 时间:2021-12-04

截止至今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

推荐站点

  • 腾讯腾讯

    腾讯网(www.QQ.com)是中国浏览量最大的中文门户网站,是腾讯公司推出的集新闻信息、互动社区、娱乐产品和基础服务为一体的大型综合门户网站。腾讯网服务于全球华人用户,致力成为最具传播力和互动性,权威、主流、时尚的互联网媒体平台。通过强大的实时新闻和全面深入的信息资讯服务,为中国数以亿计的互联网用户提供富有创意的网上新生活。

    www.qq.com
  • 搜狐搜狐

    搜狐网是全球最大的中文门户网站,为用户提供24小时不间断的最新资讯,及搜索、邮件等网络服务。内容包括全球热点事件、突发新闻、时事评论、热播影视剧、体育赛事、行业动态、生活服务信息,以及论坛、博客、微博、我的搜狐等互动空间。

    www.sohu.com
  • 网易网易

    网易是中国领先的互联网技术公司,为用户提供免费邮箱、游戏、搜索引擎服务,开设新闻、娱乐、体育等30多个内容频道,及博客、视频、论坛等互动交流,网聚人的力量。

    www.163.com
  • 新浪新浪

    新浪网为全球用户24小时提供全面及时的中文资讯,内容覆盖国内外突发新闻事件、体坛赛事、娱乐时尚、产业资讯、实用信息等,设有新闻、体育、娱乐、财经、科技、房产、汽车等30多个内容频道,同时开设博客、视频、论坛等自由互动交流空间。

    www.sina.com.cn
  • 百度一下百度一下

    百度一下,你就知道

    www.baidu.com