摘要:
题目描述: You are climbing a stair case. It takes n steps to reach to the top. Each time you can either climb 1 or 2 steps. In how many distinct ways can 阅读全文
摘要:
题目描述: Say you have an array for which the ith element is the price of a given stock on day i. If you were only permitted to complete at most one trans 阅读全文
摘要:
题目描述: You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint stopp 阅读全文
摘要:
Description: Given an integer array nums, find the sum of the elements between indices i and j (i ≤ j), inclusive. Example: Note: 这是一个比较简单的元素相加题目。给定一个 阅读全文