摘要: [抄题]: Given an array of strings, group anagrams together. Example: [暴力解法]: 时间分析: 空间分析: [优化后]: 时间分析: 空间分析: [奇葩输出条件]: [奇葩corner case]: [思维问题]: 不知道k-v怎么存 阅读全文
posted @ 2018-05-05 23:45 苗妙苗 阅读(282) 评论(0) 推荐(0)
摘要: [抄题]: mplement pow(x, n), which calculates x raised to the power n (xn). Example 1: Example 2: Example 3: [暴力解法]: 时间分析: 空间分析: [优化后]: 时间分析: 空间分析: [奇葩输出 阅读全文
posted @ 2018-05-05 22:35 苗妙苗 阅读(208) 评论(0) 推荐(0)
摘要: [抄题]: Given an array of n integers where n > 1, nums, return an array output such that output[i] is equal to the product of all the elements of nums e 阅读全文
posted @ 2018-05-05 17:12 苗妙苗 阅读(141) 评论(0) 推荐(0)
摘要: [抄题]: Given an input string (s) and a pattern (p), implement regular expression matching with support for '.' and '*'. The matching should cover the e 阅读全文
posted @ 2018-05-05 09:15 苗妙苗 阅读(194) 评论(0) 推荐(0)