四则运算
文章平均质量分 70
jmspan
这个作者很懒,什么都没留下…
展开
-
LeetCode 166. Fraction to Recurring Decimal(循环小数)
原题网址:https://leetcode.com/problems/fraction-to-recurring-decimal/Given two integers representing the numerator and denominator of a fraction, return the fraction in string format.If the frac原创 2016-05-25 01:39:57 · 1027 阅读 · 0 评论 -
LeetCode 150. Evaluate Reverse Polish Notation(计算后缀表达式)
原题网址:https://leetcode.com/problems/evaluate-reverse-polish-notation/Evaluate the value of an arithmetic expression in Reverse Polish Notation.Valid operators are +, -, *, /. Each operand m原创 2016-05-26 01:10:23 · 612 阅读 · 0 评论 -
LeetCode 29. Divide Two Integers(除法)
原题网址:https://leetcode.com/problems/divide-two-integers/Divide two integers without using multiplication, division and mod operator.If it is overflow, return MAX_INT.方法一:使用长整数处理溢出问题。publi原创 2016-05-20 10:35:39 · 492 阅读 · 0 评论 -
LeetCode 43. Multiply Strings(乘法)
原题网址:https://leetcode.com/problems/multiply-strings/Given two numbers represented as strings, return multiplication of the numbers as a string.Note:The numbers can be arbitrarily large原创 2016-05-20 10:46:06 · 552 阅读 · 0 评论 -
LeetCode 66. Plus One(加1)
原题网址:https://leetcode.com/problems/plus-one/Given a non-negative number represented as an array of digits, plus one to the number.The digits are stored such that the most significant digit i原创 2016-05-22 00:04:52 · 68 阅读 · 0 评论 -
LeetCode 67. Add Binary(二进制加)
原题网址:https://leetcode.com/problems/add-binary/Given two binary strings, return their sum (also a binary string).For example,a = "11"b = "1"Return "100".方法一:使用字符串来表示。public class So原创 2016-05-22 00:04:55 · 560 阅读 · 0 评论 -
415. Add Strings
原题网址:https://leetcode.com/problems/add-strings/Given two non-negative numbers num1 and num2 represented as string, return the sum of num1 and num2.Note:The length of both num1 and num2原创 2016-10-28 02:04:11 · 316 阅读 · 0 评论