SolveMeFirst HackerRank Solution in Python

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 Solution Python`

SolveMeFirst HackerRank Function prototype:

int solveMeFirst(int a, int b);
where,

  • a is the first integer input.
  • b is the second integer input

Return values

  • the sum of the above two integers

Sample Input

a = 2
b = 3

Sample Output

5

Explanation

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

Leave a Comment

Your email address will not be published. Required fields are marked *