Problems
Scratchpad
Run
Submit
0
0
1
2
3
4
5
6
7
8
9
0
0
1
2
3
4
5
6
7
8
9
:
0
0
1
2
3
4
5
6
7
8
9
0
0
1
2
3
4
5
6
7
8
9
Toggle theme (Current: Custom)
Scratchpad
Run
Submit
Description
Hints
Solutions
371. Sum of Two Integers
Medium
30 Points
Math
Bit Manipulation
Given two integers a and b, return the sum of the two integers without using the operators + and -.
Examples
Example 1
Input: a = 1, b = 2 Output: 3
Example 2
Input: a = 2, b = 3 Output: 5
Constraints
-1000 <= a, b <= 1000
JAVASCRIPT
Code
Tests
Result
Description
Hints
Solutions
371. Sum of Two Integers
Medium
30 Points
Math
Bit Manipulation
Given two integers a and b, return the sum of the two integers without using the operators + and -.
Examples
Example 1
Input: a = 1, b = 2 Output: 3
Example 2
Input: a = 2, b = 3 Output: 5
Constraints
-1000 <= a, b <= 1000
JAVASCRIPT
Code
Tests
Result
Sum of Two Integers - Practice Coding | SlaveCode