We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 178dca5 commit 796a7c6Copy full SHA for 796a7c6
README.md
@@ -10,6 +10,7 @@ TODO: question14.c
10
- merge sort using dynamic programming and hashmaps
11
- duplicate elimination from an array
12
- union, intersection and difference of two arrays
13
+- bucket sort
14
15
16
### General Questions
arrays/question6.c
@@ -6,8 +6,8 @@ In each iteration one greatest element moves to its correct position.
6
It can be remembered as in each iteration the bubble(largest element) comes to the top (last in array)
7
8
Time Complexity:
9
-Best case: O(n)
-Worst case: O(n^2)
+Best case: O(n) -- already sorted just checking by looping once or for value very less than n
+Worst case: O(n^2) -- nested loop
Space Complexity:
O(1)
0 commit comments