LeetCode #70 Climbing Stairs
var climbStairs = function (n) { if (n < 3) return n; let a = 1, b = 2, next; for (let i = 3; i <= n; i++) { next = a + b; a = b; b = next; } return b; };