Грешка в Judge
При задача 08.Magic Sum judge връща тази грешка
The process executing your submission for this test may not have received the output successfully. Please try to submit again the same solution. If the result does not change, then search the error in the submission itself.
кода за задачата ми е:
function Sum(arr,num){
let pairs=[]
let place=0;
for(let i=0;i<arr.length;i++){
for(let j=i;j<arr.length;j++){
if(arr[i]+arr[j]==num && arr[i] != arr[j]){
pairs[place]=arr[i]
pairs[place+1]=arr[j]
place+=2
}
}
}
for(let i=0;i<pairs.length;i+=2){
console.log(`${pairs[i]} ${pairs[i+1]}`)
}
}