Skip to content

Commit b2db15a

Browse files
refactor 371
1 parent 5544855 commit b2db15a

File tree

1 file changed

+3
-9
lines changed
  • src/main/java/com/fishercoder/solutions

1 file changed

+3
-9
lines changed

src/main/java/com/fishercoder/solutions/_371.java

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,11 @@
11
package com.fishercoder.solutions;
22

3-
/**
4-
* 371. Sum of Two Integers
5-
*
6-
* Calculate the sum of two integers a and b, but you are not allowed to use the operator + and -.
7-
8-
Example:
9-
Given a = 1 and b = 2, return 3.
10-
*/
113
public class _371 {
124

135
public static class Solution1 {
14-
/** reference: http://stackoverflow.com/questions/9070937/adding-two-numbers-without-operator-clarification */
6+
/**
7+
* reference: http://stackoverflow.com/questions/9070937/adding-two-numbers-without-operator-clarification
8+
*/
159
public int getSum(int a, int b) {
1610
if (b == 0) {
1711
return a;

0 commit comments

Comments
 (0)