### HDU 1165 – Eddy’s research II [推公式]

vjudge题目连接 Description As is known, Ackermann function plays an important role in the sphere of theoretical computer science. However, in the other hand, the dramatic fast increasing pace of the function caused the value of Ackermann functio...

#### HDU 1165 – Eddy’s research II [推公式]

vjudge题目连接 Description As is known, Ackermann function plays an important role in the sphere of theoretical computer science. However, in the...

### LeetCode #13 – Roman to Integer

LeetCode题目链接 Given a roman numeral, convert it to an integer. Input is guaranteed to be within the range from 1 to 3999. 题意：给定一个罗马数字字符串，将他转化为阿拉伯整数。 class Solution: def romanToInt(self, s): dict = {'I':...

#### LeetCode #13 – Roman to Integer

LeetCode题目链接 Given a roman numeral, convert it to an integer. Input is guaranteed to be within the range from 1 to 3999. 题意：给定一个罗马数字...

### LeetCode #12 – Integer to Roman

LeetCode题目链接 Given an integer, convert it to a roman numeral. Input is guaranteed to be within the range from 1 to 3999. 题意：给定阿拉伯数字，转化为罗马数字 打表记录可能出现的罗马数字，从高位开始处理。 class Solution: def intToRoman(s...
LeetCode题目链接 Given an integer, convert it to a roman numeral. Input is guaranteed to be within the range from 1 to 3999. 题意：给定阿拉伯数字，转化为罗马数字 打表记录可能出...

#### LeetCode #12 – Integer to Roman

LeetCode题目链接 Given an integer, convert it to a roman numeral. Input is guaranteed to be within the range from 1 to 3999. 题意：给定阿拉伯数字，...

### LeetCode #11 – Container With Most Water

LeetCode题目链接 Given n non-negative integers a1, a2, …, an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpoints of line i is at (i, ai) and (i, 0). Find two lines, which together with...

#### LeetCode #11 – Container With Most Water

LeetCode题目链接 Given n non-negative integers a1, a2, …, an, where each represents a point at coordinate (i, ai). n vertical lines are drawn...

### LeetCode #9 – Palindrome Number

LeetCode题目链接 Determine whether an integer is a palindrome. Do this without extra space. Some hints:Could negative integers be palindromes? (ie, -1) If you are thinking of converting the integer to string, note the restriction of using extra sp...

#### LeetCode #9 – Palindrome Number

LeetCode题目链接 Determine whether an integer is a palindrome. Do this without extra space. Some hints:Could negative integers be palindromes? (ie,...

### LeetCode #8 – String to Integer (atoi) [正则表达式]

LeetCode题目链接 Implement atoi to convert a string to an integer. Hint: Carefully consider all possible input cases. If you want a challenge, please do not see below and ask yourself what are the possible input cases. Notes: It is intended for th...

#### LeetCode #8 – String to Integer (atoi) [正则表达式]

LeetCode题目链接 Implement atoi to convert a string to an integer. Hint: Carefully consider all possible input cases. If you want a challenge, plea...