摘要:
https://discuss.leetcode.com/topic/70706/beyond-my-knowledge-java-solution-with-in-line-explanation https://discuss.leetcode.com/topic/70664/c-7-line- 阅读全文
摘要:
这道题我一开始发现了数学规律: length of consecutive chars vs number of different substring “a” -> 1 = 1 "ab" -> 3 = 1+2 "abc" -> 6 = 1+2+3 "abcd" -> 10 = 1+2+3+4 于是 阅读全文
摘要:
目前只想出了Brute Force做法(1165ms), 看到有<20ms的做法,未深究: 阅读全文
只有注册用户登录后才能阅读该文。 阅读全文