Skip to content

Conversation

@rValeM
Copy link

@rValeM rValeM commented Sep 11, 2022

Hola Christian, aquí están los ejercicios de arrays que vimos el miércoles en el bootcamp de Java.

while(!flag){
flag=true;
for(int i=0;i<arr.length-1;i++){
if(arr[i]>arr[i+1]){
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Puedes ver si hay una mejora de ordenamiento con respecto a tu actual solucion, hay algoritmos mas rapidos que puedes implementar incluso Arrays.sort()

while(!flag){
flag=true;
for(int i=0;i<arr.length-1;i++){
if(arr[i]<arr[i+1]){
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lo mismo que el comentario anterior

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants