You have been given an array A of size N . you need to sort this array non-decreasing oder using bubble sort. However, you do not need to print the sorted array . You just need to print the number of swaps required to sort this array using bubble sort Input Format The first line consists of a single integer N denoting size of the array. The next line contains N space separated integers denoting the elements of the array. Output Format Print the required answer in a single line
-
Notifications
You must be signed in to change notification settings - Fork 0
You have been given an array A of size N . you need to sort this array non-decreasing oder using bubble sort. However, you do not need to print the sorted array . You just need to print the number of swaps required to sort this array using bubble sort Input Format The first line consists of a single integer N denoting size of the array. The next…
kavya-shetty765/BubbleSort
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
You have been given an array A of size N . you need to sort this array non-decreasing oder using bubble sort. However, you do not need to print the sorted array . You just need to print the number of swaps required to sort this array using bubble sort Input Format The first line consists of a single integer N denoting size of the array. The next…
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published