Coding
Published on

Hackerrank - Solve Me First solution

Authors

Solution one

Just return the addition of the two numbers.

def solveMeFirst(a,b):
    return a + b

Solution two

Find the addition using library function sum. The advantage of the sum function is that it can take variable number of arguments. For example, sum(1, 2, 3, 4) will also work.

def solveMeFirst(a,b):
    return sum(a, b)