First, try to solve this problem by yourself – Click Here to solve
The SolveMeFirst problem is the basic problem that comes into the warmup section in Hackerrank.
We just need to add two integers and return the output of them.
SolveMeFirst HackerRank Function prototype:
int solveMeFirst(int a, int b);
- a is the first integer input.
- b is the second integer input
- the sum of the above two integers
a = 2 b = 3
The sum of the two integers a and b is computed as 2+3=5
SolveMeFirst HackerRank Solution in Python:
def solveMeFirst(a,b): return a+b num1 = int(input()) num2 = int(input()) res = solveMeFirst(num1,num2) print(res)
If you found this solution helpful then please share it with your friends.
For any query just contact us- Click here
Join us on Telegram for the latest solutions and placement related help: Click Here to join us