118. Pascal’s Triangle 的变脸题,用递归的方式实现了,还没想通如何用动态规划的方式实现。
Java
1 | class Solution { |
Submission Detail
- 34 / 34 test cases passed.
- Your runtime beats 89.30 % of java submissions.
JavaScript
1 | /** |
Submission Detail
- 34 / 34 test cases passed.
- Your runtime beats 93.58 % of javascript submissions.