Python Challenges: #challenge #01 #python #development
Find a pair with the given sum in an array Encontre o par de número que somados seja igual a variavél target. Regras: Não pode colocar o array em ordem crescente. Example: Input: array = [8, 7, 2, 5, 3, 1] target = 10 Output: Pair found (8, 2) or Pair found (7, 3) Input: array = [5, 2, 6, 8, 1, 9] target = 12 Output: Pair not found
Find a pair with the given sum in an array Encontre o par de número que somados seja igual a variavél target. Regras: Não pode colocar o array em ordem crescente. Example: Input: array = [8, 7, 2, 5, 3, 1] target = 10 Output: Pair found (8, 2) or Pair found (7, 3) Input: array = [5, 2, 6, 8, 1, 9] target = 12 Output: Pair not found