摘要: 题目描述: 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 阅读全文
posted @ 2017-06-26 16:32 legooooo 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 题目描述: 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 阅读全文
posted @ 2017-06-26 15:52 legooooo 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 题目描述: 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 阅读全文
posted @ 2017-06-26 15:47 legooooo 阅读(95) 评论(0) 推荐(0) 编辑
摘要: Description: Given an integer array nums, find the sum of the elements between indices i and j (i ≤ j), inclusive. Example: Note: 这是一个比较简单的元素相加题目。给定一个 阅读全文
posted @ 2017-06-26 15:40 legooooo 阅读(142) 评论(0) 推荐(0) 编辑