Commit 9e69c733 by Pedro Rolon

saqué las impresiones que hacia para debug!

parent 208373cb
...@@ -169,9 +169,9 @@ function esta_ordenado(array){ ...@@ -169,9 +169,9 @@ function esta_ordenado(array){
array.sort(); array.sort();
for(i=0; i<aux.length; i++){ for(i=0; i<aux.length; i++){
console.log(aux[i]); //console.log(aux[i]);
console.log(array[i]); //console.log(array[i]);
console.log("***"); //console.log("***");
if(aux[i] != array[i]){ if(aux[i] != array[i]){
console.log("El array no esta ordenado!"); console.log("El array no esta ordenado!");
return return
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment