![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
每天5道编程题目
2tong杂货铺
哈尔滨工业大学 计算机科学与技术 硕士
展开
-
Maximum Subarray问题
1.问题描述Given an integer array nums, find the contiguous subarray(containing at least one number) which has the largest sum and return its sum.Example:Input: [-2,1,-3,4,-1,2,1,-5,4],Output: 6E...原创 2019-04-08 11:18:24 · 176 阅读 · 0 评论 -
Climbing Stairs问题
难度级别:Easy1.题目描述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 you climb to the top?Note: Given n...原创 2019-04-08 14:08:14 · 132 阅读 · 0 评论