2.02 Chuỗi (String)

STTTiêu đềLời giảiĐộ khóĐộ phức tạp thời gianĐộ phức tạp bộ nhớYêu thíchTỷ lệ AC (Acceptance)
0003Chuỗi con dài nhất không lặp ký tự (Longest Substring Without Repeating Characters)GoMediumO(n)O(1)❤️33.8%
0005Chuỗi con đối xứng dài nhất (Longest Palindromic Substring)GoMedium32.4%
0006Chuyển đổi zigzag (Zigzag Conversion)GoMedium44.8%
0008Chuyển chuỗi sang số nguyên (atoi) (String to Integer (atoi))GoMedium16.6%
0012Chuyển số nguyên sang số La Mã (Integer to Roman)GoMedium62.0%
0013Chuyển số La Mã sang số nguyên (Roman to Integer)GoEasy58.5%
0014Tiền tố chung dài nhất (Longest Common Prefix)GoEasy40.9%
0017Tổ hợp chữ cái của số điện thoại (Letter Combinations of a Phone Number)GoMediumO(log n)O(1)56.5%
0020Dấu ngoặc hợp lệ (Valid Parentheses)GoEasyO(log n)O(1)40.2%
0022Sinh dấu ngoặc (Generate Parentheses)GoMediumO(log n)O(1)72.5%
0028Tìm vị trí xuất hiện đầu tiên của chuỗi con (Find the Index of the First Occurrence in a String)GoEasyO(n)O(1)39.0%
0030Chuỗi con là phép nối tất cả các từ (Substring with Concatenation of All Words)GoHardO(n)O(n)❤️31.2%
0032Chuỗi dấu ngoặc hợp lệ dài nhất (Longest Valid Parentheses)GoHard32.8%
0043Nhân hai chuỗi (Multiply Strings)GoMedium39.2%
0049Nhóm các từ đảo chữ (Group Anagrams)GoMediumO(n log n)O(n)66.7%
0058Độ dài từ cuối cùng (Length of Last Word)GoEasy42.8%
0065Số hợp lệ (Valid Number)GoHard18.7%
0067Cộng nhị phân (Add Binary)GoEasy52.4%
0071Rút gọn đường dẫn (Simplify Path)GoMediumO(n)O(n)39.3%
0076Chuỗi con cửa sổ nhỏ nhất (Minimum Window Substring)GoHardO(n)O(n)❤️40.9%
0091Số cách giải mã (Decode Ways)GoMediumO(n)O(n)32.7%
0093Khôi phục địa chỉ IP (Restore IP Addresses)GoMediumO(n)O(n)❤️47.4%
0097Chuỗi xen kẽ (Interleaving String)GoMedium37.3%
0115Các dãy con phân biệt (Distinct Subsequences)GoHard44.4%
0125Palindrome hợp lệ (Valid Palindrome)GoEasyO(n)O(1)44.3%
0126Thang từ II (Word Ladder II)GoHardO(n)O(n^2)❤️27.5%
0127Thang từ (Word Ladder)GoHard37.1%
0131Phân hoạch chuỗi đối xứng (Palindrome Partitioning)GoMedium64.8%
0151Đảo thứ tự các từ trong chuỗi (Reverse Words in a String)GoMedium32.7%
0168Tiêu đề cột trong bảng tính Excel (Excel Sheet Column Title)GoEasy35.5%
0171Số cột trong bảng tính Excel (Excel Sheet Column Number)GoEasy62.0%
0179Số lớn nhất (Largest Number)GoMedium34.5%
0187Các chuỗi DNA lặp lại (Repeated DNA Sequences)GoMedium46.9%
0205Chuỗi đẳng cấu (Isomorphic Strings)GoEasy42.9%
0208Cài đặt Trie (cây tiền tố) (Implement Trie (Prefix Tree))GoMedium62.7%
0211Thiết kế cấu trúc dữ liệu thêm và tìm từ (Design Add and Search Words Data Structure)GoMedium44.0%
0212Tìm kiếm từ II (Word Search II)GoHard36.4%
0224Máy tính cơ bản (Basic Calculator)GoHard42.4%
0227Máy tính cơ bản II (Basic Calculator II)GoMedium42.4%
0242Anagram hợp lệ (Valid Anagram)GoEasy63.0%
0257Các đường đi của cây nhị phân (Binary Tree Paths)GoEasy61.4%
0290Mẫu từ (Word Pattern)GoEasy41.7%
0297Tuần tự hóa và giải tuần tự cây nhị phân (Serialize and Deserialize Binary Tree)GoHard55.4%
0299Bò và bò tót (Bulls and Cows)GoMedium49.4%
0301Loại bỏ dấu ngoặc không hợp lệ (Remove Invalid Parentheses)GoHard47.2%
0306Số cộng dồn (Additive Number)GoMedium31.1%
0318Tích lớn nhất của độ dài từ (Maximum Product of Word Lengths)GoMedium59.9%
0331Xác minh tuần tự hóa tiền thứ tự của cây nhị phân (Verify Preorder Serialization of a Binary Tree)GoMedium44.6%
0344Đảo chuỗi (Reverse String)GoEasyO(n)O(1)76.7%
0345Đảo nguyên âm trong chuỗi (Reverse Vowels of a String)GoEasyO(n)O(1)50.1%
0383Thư tống tiền (Ransom Note)GoEasy58.2%
0385Trình phân tích cú pháp mini (Mini Parser)GoMedium36.9%
0387Ký tự duy nhất đầu tiên trong chuỗi (First Unique Character in a String)GoEasy59.6%
0389Tìm ký tự khác biệt (Find the Difference)GoEasy59.9%
0392Có phải là dãy con (Is Subsequence)GoEasy47.6%
0394Giải mã chuỗi (Decode String)GoMedium57.9%
0395Chuỗi con dài nhất có ít nhất K ký tự lặp lại (Longest Substring with At Least K Repeating Characters)GoMedium44.8%
0402Xóa K chữ số (Remove K Digits)GoMedium30.6%
0409Palindrome dài nhất (Longest Palindrome)GoEasy54.2%
0412Fizz Buzz (Fizz Buzz)GoEasy69.9%
0423Khôi phục các chữ số gốc từ tiếng Anh (Reconstruct Original Digits from English)GoMedium51.3%
0424Thay thế để có chuỗi lặp lại dài nhất (Longest Repeating Character Replacement)GoMedium51.9%
0433Đột biến gen tối thiểu (Minimum Genetic Mutation)GoMedium52.3%
0434Số đoạn trong chuỗi (Number of Segments in a String)GoEasy37.2%
0438Tìm tất cả anagram trong chuỗi (Find All Anagrams in a String)GoMedium50.2%
0451Sắp xếp ký tự theo tần suất (Sort Characters By Frequency)GoMedium70.1%
0474Số một và số không (Ones and Zeroes)GoMedium46.8%
0488Trò chơi Zuma (Zuma Game)GoHard33.9%
0500Hàng phím (Keyboard Row)GoEasy69.5%
0520Phát hiện chữ hoa (Detect Capital)GoEasy57.0%
0524Từ dài nhất trong từ điển bằng cách xóa (Longest Word in Dictionary through Deleting)GoMedium51.0%
0535Mã hóa và giải mã TinyURL (Encode and Decode TinyURL)GoMedium85.9%
0537Nhân số phức (Complex Number Multiplication)GoMedium71.4%
0541Đảo chuỗi II (Reverse String II)GoEasy50.5%
0551Bản ghi điểm danh của học sinh I (Student Attendance Record I)GoEasy48.2%
0557Đảo các từ trong chuỗi III (Reverse Words in a String III)GoEasy81.9%
0567Hoán vị trong chuỗi (Permutation in String)GoMedium44.3%
0583Thao tác xóa cho hai chuỗi (Delete Operation for Two Strings)GoMedium59.8%
0599Tổng chỉ số nhỏ nhất của hai danh sách (Minimum Index Sum of Two Lists)GoEasy53.4%
0609Tìm tệp trùng lặp trong hệ thống (Find Duplicate File in System)GoMedium67.7%
0647Các chuỗi con đối xứng (Palindromic Substrings)GoMedium66.8%
0648Thay thế từ (Replace Words)GoMedium62.7%
0676Cài đặt từ điển ma thuật (Implement Magic Dictionary)GoMedium57.0%
0677Cặp tổng theo tiền tố (Map Sum Pairs)GoMedium56.8%
0692Top K từ xuất hiện nhiều nhất (Top K Frequent Words)GoMedium57.2%
0696Đếm chuỗi con nhị phân (Count Binary Substrings)GoEasy65.5%
0709Chuyển về chữ thường (To Lower Case)GoEasy82.4%
0720Từ dài nhất trong từ điển (Longest Word in Dictionary)GoMedium52.0%
0721Gộp tài khoản (Accounts Merge)GoMedium56.3%
0726Số lượng nguyên tử (Number of Atoms)GoHard52.1%
0745Tìm kiếm tiền tố và hậu tố (Prefix and Suffix Search)GoHard41.2%
0748Từ hoàn chỉnh ngắn nhất (Shortest Completing Word)GoEasy59.3%
0752Mở khóa (Open the Lock)GoMedium55.6%
0763Phân hoạch nhãn (Partition Labels)GoMedium79.7%
0767Sắp xếp lại chuỗi (Reorganize String)GoMediumO(n log n)O(log n)❤️52.9%
0771Đá quý và đá thường (Jewels and Stones)GoEasy88.2%
0784Hoán vị chữ hoa/thường (Letter Case Permutation)GoMedium73.8%
0791Sắp xếp chuỗi tùy chỉnh (Custom Sort String)GoMedium69.1%
0792Số lượng dãy con khớp (Number of Matching Subsequences)GoMedium51.6%
0794Trạng thái tic-tac-toe hợp lệ (Valid Tic-Tac-Toe State)GoMedium35.1%
0811Số lượt truy cập theo miền con (Subdomain Visit Count)GoMedium75.5%
0816Tọa độ mơ hồ (Ambiguous Coordinates)GoMedium56.3%
0819Từ phổ biến nhất (Most Common Word)GoEasy44.8%
0820Mã hóa ngắn cho các từ (Short Encoding of Words)GoMedium60.6%
0821Khoảng cách ngắn nhất tới một ký tự (Shortest Distance to a Character)GoEasy71.3%
0828Đếm ký tự duy nhất của mọi chuỗi con của chuỗi đã cho (Count Unique Characters of All Substrings of a Given String)GoHard51.6%
0830Vị trí các nhóm lớn (Positions of Large Groups)GoEasy51.8%
0838Đẩy quân domino (Push Dominoes)GoMedium57.0%
0839Nhóm chuỗi tương tự (Similar String Groups)GoHard48.0%
0842Chia mảng thành dãy Fibonacci (Split Array into Fibonacci Sequence)GoMediumO(n^2)O(1)❤️38.4%
0844So sánh chuỗi với phím backspace (Backspace String Compare)GoEasy48.1%
0856Điểm số của dấu ngoặc (Score of Parentheses)GoMediumO(n)O(n)64.8%
0859Chuỗi bạn bè (Buddy Strings)GoEasy29.2%
0880Ký tự tại chỉ số trong chuỗi đã giải mã (Decoded String at Index)GoMedium28.3%
0884Các từ không chung từ hai câu (Uncommon Words from Two Sentences)GoEasy66.3%
0890Tìm và thay thế mẫu (Find and Replace Pattern)GoMedium77.6%
0916Tập con của từ (Word Subsets)GoMedium53.7%
0921Số lần thêm tối thiểu để dấu ngoặc hợp lệ (Minimum Add to Make Parentheses Valid)GoMedium75.8%
0925Tên bị nhấn giữ (Long Pressed Name)GoEasyO(n)O(1)33.1%
0942Ghép chuỗi DI (DI String Match)GoEasy77.3%
0949Thời gian lớn nhất từ các chữ số cho trước (Largest Time for Given Digits)GoMedium35.2%
0953Xác minh từ điển người ngoài hành tinh (Verifying an Alien Dictionary)GoEasy54.5%
0966Bộ kiểm tra chính tả nguyên âm (Vowel Spellchecker)GoMedium51.4%
0981Kho lưu trữ key-value theo thời gian (Time Based Key-Value Store)GoMedium52.3%
0984Chuỗi không có AAA hoặc BBB (String Without AAA or BBB)GoMedium43.1%
0990Khả năng thỏa mãn các phương trình đẳng thức (Satisfiability of Equality Equations)GoMedium50.5%
1002Tìm các ký tự chung (Find Common Characters)GoEasy68.5%
1003Kiểm tra từ hợp lệ sau khi thay thế (Check If Word Is Valid After Substitutions)GoMediumO(n)O(1)58.2%
1021Xóa dấu ngoặc ngoài cùng (Remove Outermost Parentheses)GoEasy80.6%
1028Khôi phục cây từ duyệt tiền thứ tự (Recover a Tree From Preorder Traversal)GoHard73.3%
1047Xóa các ký tự trùng kề nhau trong chuỗi (Remove All Adjacent Duplicates In String)GoEasy69.7%
1048Chuỗi từ dài nhất (Longest String Chain)GoMedium59.2%
1078Các từ xuất hiện sau bigram (Occurrences After Bigram)GoEasy63.6%
1079Số khả năng sắp xếp gạch chữ (Letter Tile Possibilities)GoMedium76.0%
1108Vô hiệu hóa địa chỉ IP (Defanging an IP Address)GoEasy89.1%
1111Độ sâu lồng tối đa của hai chuỗi ngoặc hợp lệ (Maximum Nesting Depth of Two Valid Parentheses Strings)GoMedium73.0%
1143Dãy con chung dài nhất (Longest Common Subsequence)GoMedium58.4%
1154Ngày trong năm (Day of the Year)GoEasy49.6%
1160Tìm các từ có thể tạo từ các ký tự (Find Words That Can Be Formed by Characters)GoEasy67.5%
1170So sánh chuỗi theo tần suất của ký tự nhỏ nhất (Compare Strings by Frequency of the Smallest Character)GoMedium61.5%
1178Số từ hợp lệ cho mỗi câu đố (Number of Valid Words for Each Puzzle)GoHard46.3%
1189Số lượng bóng bay tối đa (Maximum Number of Balloons)GoEasy61.0%
1190Đảo chuỗi con giữa mỗi cặp dấu ngoặc (Reverse Substrings Between Each Pair of Parentheses)GoMedium65.9%
1202Chuỗi nhỏ nhất sau khi hoán đổi (Smallest String With Swaps)GoMedium57.7%
1208Lấy các chuỗi con bằng nhau trong ngân sách (Get Equal Substrings Within Budget)GoMedium48.5%
1209Xóa các ký tự trùng kề nhau trong chuỗi II (Remove All Adjacent Duplicates in String II)GoMedium56.2%
1221Chia chuỗi thành các chuỗi cân bằng (Split a String in Balanced Strings)GoEasy85.1%
1234Thay chuỗi con để chuỗi cân bằng (Replace the Substring for Balanced String)GoMedium37.2%
1239Độ dài tối đa của chuỗi ghép có ký tự duy nhất (Maximum Length of a Concatenated String with Unique Characters)GoMedium52.2%
1249Xóa tối thiểu để dấu ngoặc hợp lệ (Minimum Remove to Make Valid Parentheses)GoMedium65.8%
1268Hệ thống gợi ý tìm kiếm (Search Suggestions System)GoMedium66.2%
1332Xóa các dãy con đối xứng (Remove Palindromic Subsequences)GoEasy76.2%
1396Thiết kế hệ thống tàu điện ngầm (Design Underground System)GoMedium73.6%
1446Các ký tự liên tiếp (Consecutive Characters)GoEasy61.2%
1455Kiểm tra một từ có là tiền tố của bất kỳ từ nào trong câu không (Check If a Word Occurs As a Prefix of Any Word in a Sentence)GoEasy64.2%
1461Kiểm tra chuỗi có chứa tất cả mã nhị phân độ dài K không (Check If a String Contains All Binary Codes of Size K)GoMedium56.6%
1573Số cách chia một chuỗi (Number of Ways to Split a String)GoMedium32.5%
1576Thay tất cả dấu ? để tránh ký tự lặp liên tiếp (Replace All ?'s to Avoid Consecutive Repeating Characters)GoEasy48.3%
1614Độ sâu lồng tối đa của dấu ngoặc (Maximum Nesting Depth of the Parentheses)GoEasy82.3%
1624Chuỗi con lớn nhất giữa hai ký tự giống nhau (Largest Substring Between Two Equal Characters)GoEasy59.1%
1629Phím chậm nhất (Slowest Key)GoEasy59.2%
1647Số lần xóa tối thiểu để tần suất ký tự là duy nhất (Minimum Deletions to Make Character Frequencies Unique)GoMedium59.1%
1653Số lần xóa tối thiểu để chuỗi cân bằng (Minimum Deletions to Make String Balanced)GoMedium58.9%
1657Xác định hai chuỗi có gần nhau không (Determine if Two Strings Are Close)GoMedium56.3%
1662Kiểm tra hai mảng chuỗi có tương đương không (Check If Two String Arrays are Equivalent)GoEasy83.5%
1663Chuỗi nhỏ nhất với giá trị số cho trước (Smallest String With A Given Numeric Value)GoMedium66.8%
1668Chuỗi con lặp lại tối đa (Maximum Repeating Substring)GoEasy39.5%
1678Diễn giải Goal Parser (Goal Parser Interpretation)GoEasy86.5%
1684Đếm số chuỗi nhất quán (Count the Number of Consistent Strings)GoEasy82.2%
1689Chia thành số lượng tối thiểu các số deci-binary (Partitioning Into Minimum Number Of Deci-Binary Numbers)GoMedium89.2%
1694Định dạng lại số điện thoại (Reformat Phone Number)GoEasy65.1%
1704Kiểm tra hai nửa chuỗi có giống nhau không (Determine if String Halves Are Alike)GoEasy77.7%
1736Thời gian muộn nhất bằng cách thay chữ số ẩn (Latest Time by Replacing Hidden Digits)GoEasy42.4%
1758Thay đổi tối thiểu để chuỗi nhị phân xen kẽ (Minimum Changes To Make Alternating Binary String)GoEasy58.3%
1763Chuỗi con "nice" dài nhất (Longest Nice Substring)GoEasy61.6%
1816Cắt ngắn câu (Truncate Sentence)GoEasy83.0%
2038Xóa các mảnh màu nếu hai hàng xóm cùng màu (Remove Colored Pieces if Both Neighbors are the Same Color)GoMedium57.9%
2096Hướng dẫn từng bước từ một nút của cây nhị phân tới nút khác (Step-By-Step Directions From a Binary Tree Node to Another)GoMedium48.4%
2167Thời gian tối thiểu để loại bỏ tất cả xe chứa hàng cấm (Minimum Time to Remove All Cars Containing Illegal Goods)GoHard40.7%
2182Xây dựng chuỗi với giới hạn lặp lại (Construct String With Repeat Limit)GoMedium52.2%
----------------------------------------------------------------------------------------------