recategorized by
829 views
2 votes
2 votes

The given array is $\text{arr={1, 2, 4, 3}}$. Bubble sort is used to sort the array elements. How many passes will be done to sort the array?

  1. $4$
  2. $2$
  3. $1$
  4. $3$
recategorized by

1 Answer

Answer:

Related questions

1 votes
1 votes
1 answer
1
gatecse asked Dec 9, 2020
643 views
Consider an array of positive integers between $123456$ to $876543$, which sorting algorithm can be used to sort these number in linear time?Impossible to sort in linear ...
1 votes
1 votes
1 answer
3
gatecse asked Dec 9, 2020
668 views
Which of the following is a correct time complexity to solve the $0/1$ knapsack problem where $n$ and $w$ represents the number of items and capacity of knapsack respecti...
1 votes
1 votes
1 answer
4
gatecse asked Dec 9, 2020
409 views
Finding the location of the element with a given value is :TraversalSearchSortNone of the options