摘要: Given an array of strings, group anagrams together. Example: Note: All inputs will be in lowercase. The order of your output does not matter. 判断anagra 阅读全文
posted @ 2018-11-25 19:28 fatttcat 阅读(122) 评论(0) 推荐(0)
摘要: Equations are given in the format A / B = k, where A and B are variables represented as strings, and k is a real number (floating point number). Given 阅读全文
posted @ 2018-11-25 19:17 fatttcat 阅读(106) 评论(0) 推荐(0)
摘要: Given two strings S and T, return if they are equal when both are typed into empty text editors. # means a backspace character. Example 1: Input: S = 阅读全文
posted @ 2018-11-25 16:13 fatttcat 阅读(140) 评论(0) 推荐(0)
摘要: Given an array of characters, compress it in-place. The length after compression must always be smaller than or equal to the original array. Every ele 阅读全文
posted @ 2018-11-25 09:42 fatttcat 阅读(137) 评论(0) 推荐(0)
摘要: Sometimes people repeat letters to represent extra feeling, such as "hello" -> "heeellooo", "hi" -> "hiiii". Here, we have groups, of adjacent letters 阅读全文
posted @ 2018-11-25 05:34 fatttcat 阅读(132) 评论(0) 推荐(0)