F_G

许多问题需要说清楚就可以&&走永远比跑来的重要

导航

2015年8月31日 #

[Leetcode] Basic Calculator II

摘要: Basic Calculator IIImplement a basic calculator to evaluate a simple expression string.The expression string contains only non-negative integers, +, -... 阅读全文

posted @ 2015-08-31 20:51 F_G 阅读(195) 评论(0) 推荐(0) 编辑

[Leetcode] Basic Calculator

摘要: Basic CalculatorImplement a basic calculator to evaluate a simple expression string.The expression string may contain open ( and closing parentheses )... 阅读全文

posted @ 2015-08-31 19:56 F_G 阅读(143) 评论(0) 推荐(0) 编辑

[底层] 为什么Integer.MIN_VALUE-1会等于Integer.MAX_VALUE

摘要: Integer.MIN_VALUE-1 = Integer.MAX_VALUEInteger.MAX_VALUE+1 = Integer.MIN_VALUE实际上这里是计算机底层的位运算法则问题[1]计算机底层采用了补码来进行加减乘除的运算,好处是符号位参与运算.举上面两个例子来说明问题。Integ... 阅读全文

posted @ 2015-08-31 18:48 F_G 阅读(2400) 评论(0) 推荐(1) 编辑

[Leetcode] Combination Sum III

摘要: Combination Sum IIIFind all possible combinations of k numbers that add up to a number n, given that only numbers from 1 to 9 can be used and each com... 阅读全文

posted @ 2015-08-31 10:48 F_G 阅读(161) 评论(0) 推荐(0) 编辑