From 5df19c8b5fd6757c5fe38606958a8e695b03af2d Mon Sep 17 00:00:00 2001 From: "go-interview-practice-bot[bot]" <230190823+go-interview-practice-bot[bot]@users.noreply.github.com> Date: Tue, 4 Nov 2025 22:54:35 +0000 Subject: [PATCH 1/2] Add solution for Challenge 1 --- .../es-codigo/solution-template.go | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 challenge-1/submissions/es-codigo/solution-template.go diff --git a/challenge-1/submissions/es-codigo/solution-template.go b/challenge-1/submissions/es-codigo/solution-template.go new file mode 100644 index 00000000..aab16ac4 --- /dev/null +++ b/challenge-1/submissions/es-codigo/solution-template.go @@ -0,0 +1,25 @@ +package main + +import ( + "fmt" +) + +func main() { + var a, b int + // Read two integers from standard input + _, err := fmt.Scanf("%d, %d", &a, &b) + if err != nil { + fmt.Println("Error reading input:", err) + return + } + + // Call the Sum function and print the result + result := Sum(a, b) + fmt.Println(result) +} + +// Sum returns the sum of a and b. +func Sum(a int, b int) int { + // TODO: Implement the function + return a+b +} From d03c9e425451986937eb741bbeb51304f512ca55 Mon Sep 17 00:00:00 2001 From: Will Young Date: Tue, 4 Nov 2025 17:17:46 -0600 Subject: [PATCH 2/2] Update solution-template.go --- challenge-1/submissions/es-codigo/solution-template.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/challenge-1/submissions/es-codigo/solution-template.go b/challenge-1/submissions/es-codigo/solution-template.go index aab16ac4..479c1774 100644 --- a/challenge-1/submissions/es-codigo/solution-template.go +++ b/challenge-1/submissions/es-codigo/solution-template.go @@ -20,6 +20,5 @@ func main() { // Sum returns the sum of a and b. func Sum(a int, b int) int { - // TODO: Implement the function - return a+b + return a + b }