摘要: Given an input string, reverse the string word by word. Example 1: Input: "the sky is blue" Output: "blue is sky the" Example 2: Input: " hello world! 阅读全文
posted @ 2020-02-11 21:38 xuan_abc 阅读(147) 评论(0) 推荐(0)
摘要: From any string, we can form a subsequence of that string by deleting some number of characters (possibly no deletions). Given two strings source and  阅读全文
posted @ 2020-02-11 12:26 xuan_abc 阅读(154) 评论(0) 推荐(0)
摘要: Example: Input: S = "heeellooo" words = ["hello", "hi", "helo"] Output: 1 Explanation: We can extend "e" and "o" in the word "hello" to get "heeellooo 阅读全文
posted @ 2020-02-11 11:40 xuan_abc 阅读(145) 评论(0) 推荐(0)
摘要: In a row of dominoes, A[i] and B[i] represent the top and bottom halves of the i-th domino. (A domino is a tile with two numbers from 1 to 6 - one on 阅读全文
posted @ 2020-02-11 10:29 xuan_abc 阅读(101) 评论(0) 推荐(0)