#数组和字符串
该标签下的全部文章。
String Composition
Given a newspaper and message as two strings, check if the message can be composed using letters in the newspa
String Compression
Implement a method to perform basic string compression using the counts of repeated characters.
Implement strStr()
Returns the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack.
!!Substring with Concatenation of All Words
You are given a string, s, and a list of words, words, that are all of the same length.
Text Justification
Given an array of words and a length L, format the text such that each line has exactly L characters and is fu
ZigZag Conversion
The string PAYPALISHIRING is written in a zigzag pattern on a given number of rows like this: (you may want to