[LeetCode 58] Length of Last Word [Java]
1. Description Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the string...
1. Description Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the string...
1. Description The count-and-say sequence is the sequence of integers with the first five terms as following: 1.1 2. 11 3. 21 4. 1211 5....
1. Description Implement strStr(). Return the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack. 2. Exam...
1. Description Implement a basic calculator to evaluate a simple expression string. The expression string may contain open ( and closing parenthese...
1. Description Implement a basic calculator to evaluate a simple expression string. The expression string contains only non-negative integers, +, -...
1. Description Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length. Do not alloc...
1. Description Given two strings s1 and s2, write a function to return true if s2 contains the permutation of s1. In other words, one of the first ...
1. Description Given a string representing a code snippet, you need to implement a tag validator to parse the code and return whether it is valid. ...
1. Description You are given a string, s, and a list of words, words, that are all of the same length. Find all starting indices of substring(s) in...