DR
Size: a a a
DR
DR
SP
findIndexNumb(
_ arr: [Int],
_ target: Int) -> (Int, Int)? {
var numbDict = [Int:Int]()
for (i, value)
in arr.enumerated() {
if
let n = numbDict[value] {
return (i,n)
}
else{
numbDict[target - value] = i
}
}
return
nil
}
IS
I
IS
A
IS
IS
NB
M
DH