Q. The given array is arr = {1,2,3,4,5}. (bubble sort is implemented with a flag variable)The number of iterations in selection sort and bubble sort respectively are,
β
Correct Answer: (D)
4 and 1
You must be Logged in to update hint/solution
Discussion
Question Analytics
607
Total Visits
3 y ago
Published
Mr. Dubey
Publisher
81%
Success Rate