You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
le code suivant : "
def island(num:Array[Int]): Int = {
var compte: Int = 0
for (rg <- 0 to (num.length)-2) {
if (num(rg) < num(rg+1)) {
compte = compte+1
}
}
return compte
}
"
est considéré solution valide, alors qu'il donne un résultat erroné sur une ile (0,4,2,0) par example
The text was updated successfully, but these errors were encountered:
le code suivant : "
def island(num:Array[Int]): Int = {
var compte: Int = 0
for (rg <- 0 to (num.length)-2) {
if (num(rg) < num(rg+1)) {
compte = compte+1
}
}
return compte
}
"
est considéré solution valide, alors qu'il donne un résultat erroné sur une ile (0,4,2,0) par example
The text was updated successfully, but these errors were encountered: