字符串
zyp7355
这个作者很懒,什么都没留下…
展开
-
leetcode #58 length of last word
Length of Last WordEasy5582203Add to ListShareGiven a string s consists of upper/lower-case alphabets and empty space characters ’ ', return the length of last word (last word means the last a...原创 2020-04-08 04:07:10 · 80 阅读 · 0 评论 -
leetcode # 49 group anagrams
Given an array of strings, group anagrams together.Example:Input: [“eat”, “tea”, “tan”, “ate”, “nat”, “bat”],Output:[[“ate”,“eat”,“tea”],[“nat”,“tan”],[“bat”]]Note:All inputs will be in lowe...原创 2020-04-04 02:54:22 · 90 阅读 · 0 评论 -
leetcode#49. Group Anagrams
Given an array of strings, group anagrams together.Example:Input: [“eat”, “tea”, “tan”, “ate”, “nat”, “bat”],Output:[[“ate”,“eat”,“tea”],[“nat”,“tan”],[“bat”]]Note:All inputs will be in lowe...原创 2020-04-04 02:16:56 · 74 阅读 · 0 评论 -
leetcode #43 Multiply Strings
Given two non-negative integers num1 and num2 represented as strings, return the product of num1 and num2, also represented as a string.Example 1:Input: num1 = “2”, num2 = “3”Output: “6”Example 2:...原创 2020-04-03 03:20:35 · 93 阅读 · 0 评论 -
leetcode#14. Longest Common Prefix
Write a function to find the longest common prefix string amongst an array of strings.If there is no common prefix, return an empty string “”.Example 1:Input: [“flower”,“flow”,“flight”]Output: “fl...原创 2020-03-18 13:02:06 · 99 阅读 · 0 评论