摘要:
Python0006】爬楼梯 【题目描述】 假设一段楼梯共n(n>1)个台阶,小朋友一步最多能上3个台阶,那么小朋友上这段楼梯一共有多少种方法。 【源代码程序】 def Pa(n): if n == 1: return 1 elif n == 2: return 2 elif n == 3: ret 阅读全文
摘要:
class Solution { ArrayList<Integer> tmp = new ArrayList<Integer>(); public int[] reversePrint(ListNode head) { recur(head); int[] res = new int[tmp.si 阅读全文