240 发简信
IP属地:上海
  • 187. Repeated DNA Sequences

    代码1 Runtime: 43 ms, faster than 11.05% of Java online submissions for Re...

  • 115. Distinct Subsequences

    代码1 dpAn example:S: [acdabefbc]T: [ab] first we check with a: then we ch...

  • 241. Different Ways to Add Parentheses

    代码1 Runtime: 3 ms, faster than 25.41% of Java online submissions for Dif...

  • 32. Longest Valid Parentheses

    代码1 Runtime: 9 ms, faster than 8.31% of Java online submissions for Long...

  • 22. Generate Parentheses

    代码1 backtrackRuntime: 1 ms, faster than 84.99% of Java online submission...

  • 132. Palindrome Partitioning II

    代码1 DPRuntime: 9 ms, faster than 82.70% of Java online submissions for P...

  • 131. Palindrome Partitioning

    代码1 DFSRuntime: 3 ms, faster than 59.03% of Java online submissions for ...

  • 336. Palindrome Pairs

    代码1 首先把每个单词都放进去这个逆向单词树。然后试着是否能不停的往下走。有两种情况是可以认为当前遍历的词和某个节点可以形成一个结果配对的。如果...

  • 214. Shortest Palindrome

    代码1 第一次自己做出hard题Runtime: 118 ms, faster than 42.09% of Java online submi...