摘要:
[抄题]: Given an array nums, write a function to move all 0's to the end of it while maintaining the relative order of the non-zero elements. For exampl 阅读全文
摘要:
[抄题]: Given a string s and a list of strings dict, you need to add a closed pair of bold tag <b> and </b> to wrap the substrings in s that exist in di 阅读全文
摘要:
[抄题]: Given a non-empty string s and an abbreviation abbr, return whether the string matches with the given abbreviation. A string such as "word" cont 阅读全文
摘要:
[抄题]: You are playing the following Flip Game with your friend: Given a string that contains only these two characters: + and -, you and your friend t 阅读全文
摘要:
[抄题]: You are given a string representing an attendance record for a student. The record only contains the following three characters: A student could 阅读全文
摘要:
[抄题]: X is a good number if after rotating each digit individually by 180 degrees, we get a valid number that is different from X. Each digit must be 阅读全文
摘要:
[抄题]: Count the number of segments in a string, where a segment is defined to be a contiguous sequence of non-space characters. Please note that the s 阅读全文
摘要:
[抄题]: Given an array of characters, compress it in-place. The length after compression must always be smaller than or equal to the original array. Eve 阅读全文
摘要:
[抄题]: Given a word, you need to judge whether the usage of capitals in it is right or not. We define the usage of capitals in a word to be right when 阅读全文