
Climbing Stairs
·
PS/LeetCode
문제https://leetcode.com/problems/climbing-stairs/description/입력1 결과ans: Int = n계단까지 올라갈 수 있는 경우의 수해석한번에 1칸 또는 2칸까지 올라갈 수 있으니 목적지(n) 기준 n-1과 n-2 경우의 수를 더하면 끝 코드class Solution { func climbStairs(_ n: Int) -> Int { if n