Sum of Two Numbers
Easy
math
basic
Sum of Two Numbers
Given two integers, return their sum.
Example 1
Input: a = 2, b = 3
Output: 5
Example 2
Input: a = -1, b = 5
Output: 4
Constraints
- -1000 ≤ a, b ≤ 1000
Sample Test Cases
Example 1
Input:
2 3
Expected Output:
5
Explanation:
2 + 3 = 5
Example 2
Input:
-1 5
Expected Output:
4
Explanation:
-1 + 5 = 4
Keyboard shortcuts:
- • Ctrl/Cmd + Enter to submit
📈 Statistics
Submissions
0
Accepted
0