劍指offer-JZ9-變態跳臺階

題目描述 一隻青蛙一次能夠跳上1級臺階,也能夠跳上2級……它也能夠跳上n級。求該青蛙跳上一個n級的臺階總共有多少種跳法。code   C++io class Solution { public: int jumpFloorII(int number) { if(number <= 0) return -1; else if(number
相關文章
相關標籤/搜索