| [ Web Proxy ] |
| Viewing: https://raw.githubusercontent.com/subham500071430/JavaProgramming/patch-2/Sorting/BubbleSort.java | [Back] [Original] |
package Sorting;
import java.util.*;
public class BubbleSort {
// Time Complexity of Bubble Sort = O(n^2)
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.print("Enter the size of array:");
int size = sc.nextInt();
int arr[] = new int[size];
//for input
System.out.print("Enter the element of array: ");
for(int i=0; i
| Web Proxy Viewer | New URL | Original Page |