题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5328 1 #include 2 #include 3 typedef long long ll; 4 const int MAXN = 1e6+10; 5 ll ...
分类:
其他好文 时间:
2015-08-05 06:27:22
阅读次数:
122
1、题目名称 Valid Anagram (易位构词) 2、题目地址 https://leetcode.com/problems/valid-anagram/ 3、题目内容 英文:Given two strings s and t, write a function to determine if t is an anagram of s. 中...
分类:
其他好文 时间:
2015-08-05 01:21:50
阅读次数:
369
1、题目名称 Roman to Integer (罗马数字到阿拉伯数字的转换) 2、题目地址 https://leetcode.com/problems/roman-to-integer/ 3、题目内容 英文:Given a roman numeral, convert it to an integer. Input is g...
分类:
其他好文 时间:
2015-08-04 08:14:55
阅读次数:
229
大概2014年10月去看了下单调队列,那算法还是挺不错的,总是能最快的求出在某个区间的最值。那时做了几道题巩固下,后面一直没看了,然后今天偶遇一道类似的题,https://leetcode.com/problems/sliding-window-maximum/,看到时想起来是这个算法。但是忘光了,...
分类:
其他好文 时间:
2015-08-03 20:56:48
阅读次数:
109
Description
When we are focusing on solving problems, we usually prefer to stay in front of computers rather than go out for lunch. At this time, we may call for food delivery.Suppose there are N peop...
分类:
其他好文 时间:
2015-08-03 14:32:38
阅读次数:
151
1、题目名称 Integer to Roman (阿拉伯数字到罗马数字的转换) 2、题目地址 https://leetcode.com/problems/integer-to-roman 3、题目内容 英文:Given an integer, convert it to a roman numeral. Input is g...
分类:
其他好文 时间:
2015-08-02 23:39:28
阅读次数:
454
https://leetcode.com/problems/maximum-subarray/Find the contiguous subarray within an array (containing at least one number) which has the largest sum...
分类:
其他好文 时间:
2015-08-02 11:43:32
阅读次数:
95
??
/*
Problems
Ranklist
Status
Statistics
最简单的计算机
Time Limit : 2000/1000ms (Java/Other) Memory Limit : 65536/32768K (Java/Other)
Total Submission(s) : 18 Accepted Submission(s) : 4
Font:...
分类:
其他好文 时间:
2015-08-02 10:19:39
阅读次数:
131
uva 125 Numbering PathsDescription
Download as PDF
Background
Problems that process input and generate a simple yes'' orno” answer are called decision problems. One class of decision problems, the N...
分类:
编程语言 时间:
2015-08-01 11:37:38
阅读次数:
112
1、题目名称 String to Integer (atoi) (字符串到数字的转换) 2、题目地址 https://leetcode.com/problems/string-to-integer-atoi/ 3、题目内容 英文:Implement atoi to convert a string to an integer. 中文...
分类:
其他好文 时间:
2015-07-31 23:43:03
阅读次数:
432