bubble-sort tag

2 questions


1 answers
51 views
0
To sort values by java Array size

package practice_3;import javax.swing.JOptionPane;public class ArrayExcercise1 {public static void main(String[]args) { int[] list = new int[10]; String print = ; for (int i = 0; i<list.length; i+...

2 years ago

1 answers
58 views
0
I have a question about the bubble alignment of Python!

def sorting_list(list_a,sorting): for i in range(len(list_a)+1): for j in range(len(list_a)-i-1): if sorting==0: if list_a[j+1]>list_a[j]: tmp = list_a[j+1] list_a[j+1] = list_a[j] lis...

2 years ago

© 2024 OneMinuteCode. All rights reserved.