From 3dbb22056fb490d2f482fc39185ee0392117457f Mon Sep 17 00:00:00 2001 From: OGordoo Date: Thu, 5 Dec 2019 13:09:37 +0000 Subject: [PATCH] twosumfix --- subjects/twosum.en.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/subjects/twosum.en.md b/subjects/twosum.en.md index 43a08534..f9279e7c 100644 --- a/subjects/twosum.en.md +++ b/subjects/twosum.en.md @@ -1,17 +1,22 @@ ## twosum -### Instructions: -Given an array of integers, return indices of the two numbers such that they add up to a specific target. +### Instructions + +Given an array of integers, return indexes of the two numbers such that they add up to a specific target. + If there are more than one solution, return the first one. + If there are no solutions, return nil. Expected function: + ```go func TwoSum(nums []int, target int) []int { } ``` Here is a possible [program](TODO-LINK) to test your function : + ```go package main