题目:
Say you have an array for which the ith element is the price of a given stock on day i.
Design an algorithm to find the maximum profit. You may complete as many transactions as you like (i...
分类:
其他好文 时间:
2014-09-21 03:10:29
阅读次数:
265
微软近期Open的职位:Title: Software Development EngineerLocation: ShanghaiJOB DESCRIPTION: Be a part of MSIT Engineering Community & Online (ECO) Business Int...
分类:
其他好文 时间:
2014-09-19 02:18:54
阅读次数:
197
Description
You want to hold a party. Here's a polygon-shaped cake on the table. You'd like to cut the cake into several triangle-shaped parts for the invited comers. You have a knife to cut. The t...
分类:
其他好文 时间:
2014-09-18 23:48:44
阅读次数:
314
题意略;先暴力打表发现规律N=1 ans=1N=2 ans=2N=3 ans=2N=4 ans=4N=5 ans=2N=6 ans=4N=7 ans=6N=8 ans=8N=9 ans=2N=10 ans=4N=11 ans=6N=12 ans=8N=13 ans=10N=14 ans=12N=15...
[leetcode]Remove Duplicates from Sorted Array II...
分类:
其他好文 时间:
2014-09-18 11:30:53
阅读次数:
150
【题目】
Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below.
For example, given the following triangle
[
[2],
[...
分类:
其他好文 时间:
2014-09-18 11:29:23
阅读次数:
201
[leetcode]Search in Rotated Sorted Array II...
分类:
其他好文 时间:
2014-09-18 11:26:23
阅读次数:
167
随着互联网的迅猛发展,新闻网站正成为我国媒介版图中的重要组成部分。许多受众不再是通过传统媒体、而是通过新闻网站获取新闻。根据中国互联网络信息中心(CNNIC)2014年1月发布的调查数据[ii],网络新闻是网民排名第二的网络应用(仅次于即时通信),使用比例达到79.6%(超过4.9亿人)。身处这.....
分类:
其他好文 时间:
2014-09-17 15:04:42
阅读次数:
346
HDU 1977 Consecutive sum II(数学)...
分类:
其他好文 时间:
2014-09-16 20:38:31
阅读次数:
225