【Leetcode】38. Count and Say

2019-12-21  本文已影响0人  云端漫步_b5aa

Time complexity: O(nm), n is the input, m is the average length of res

Space complexity: O(m) if not consider the return space for returned res

上一篇 下一篇

猜你喜欢

热点阅读