Skip to content

Commit e6350ef

Browse files
committed
Undo file deletion
1 parent af44a08 commit e6350ef

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

371-Sum-of-Two-Integers.java

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
class Solution {
2+
public int getSum(int a, int b) {
3+
while (b != 0) {
4+
int tmp = (a & b) << 1;
5+
a = (a ^ b);
6+
b = tmp;
7+
}
8+
return a;
9+
}
10+
}

java/21-Merge-Two-Sorted-Lists.java

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
package java;
2+
13
/**
24
* Definition for singly-linked list.
35
* public class ListNode {

0 commit comments

Comments
 (0)