string
-
168. Excel Sheet Column Title
Given a positive integer, return its corresponding column title as appear in an Excel sheet. For exa…
-
171. Excel Sheet Column Number
Related to question Excel Sheet Column Title Given a column title as appear in an Excel sheet, retur…
-
49. Group Anagrams
Given an array of strings, group anagrams together. For example, given: [“eat”, “tea”, “tan”, “ate”,…
-
LeetCode – 459. Repeated Substring Pattern
Given a non-empty string check if it can be constructed by taking a substring of it and appending mu…
-
LeetCode – 422. Valid Word Square
Given a sequence of words, check whether it forms a valid word square. A sequence of words forms a v…
-
LeetCode – 415. Add Strings
Given two non-negative integers num1 and num2 represented as string, return the sum of num1 and num2…
-
LeetCode – 557. Reverse Words in a String III
Given a string, you need to reverse the order of characters in each word within a sentence while sti…
-
LeetCode – 599. Minimum Index Sum of Two Lists
Suppose Andy and Doris want to choose a restaurant for dinner, and they both have a list of favorite…
-
String解题方法小结
LeetCode上的相关题目(easy) 9, 14, 20, 28, 58, 66, 73, 125, 168, 171, 186, 189, 205,242, 246, 266, 290, 293…
-
LeetCode – 551. Student Attendance Record I
You are given a string representing an attendance record for a student. The record only contains the…
-
LeetCode – 438. Find All Anagrams in a String
Given a string s and a non-empty string p, find all the start indices of p‘s anagrams in s. St…
-
LeetCode – 434. Number of Segments in a String
Count the number of segments in a string, where a segment is defined to be a contiguous sequence of …
-
LeetCode – 412. Fizz Buzz
Write a program that outputs the string representation of numbers from 1 to n. But for multiples of …
-
LeetCode – 409. Longest Palindrome
Given a string which consists of lowercase or uppercase letters, find the length of the longest pali…
-
LeetCode – 408. Valid Word Abbreviation
Given a non-empty string s and an abbreviation abbr, return whether the string matches with the give…