Skip to content

Latest commit

 

History

History
 
 

README.md

View the Scoreboard

Challenge 1: Sum of Two Numbers

Problem Statement

Write a function Sum that takes two integers and returns their sum.

Function Signature

func Sum(a int, b int) int

Input Format

  • Two integers a and b.

Output Format

  • An integer representing the sum of a and b.

Constraints

  • -10^9 <= a, b <= 10^9

Sample Input and Output

Sample Input 1

2, 3

Sample Output 1

5

Sample Input 2

-5, 10

Sample Output 2

5

Instructions

  • Fork the repository.
  • Clone your fork to your local machine.
  • Create a directory named after your GitHub username inside challenge-1/submissions/.
  • Copy the solution-template.go file into your submission directory.
  • Implement the Sum function.
  • Test your solution locally by running the test file.
  • Commit and push your code to your fork.
  • Create a pull request to submit your solution.

Testing Your Solution Locally

Run the following command in the challenge-1/ directory:

go test -v