G Giao Linh New member Sep 21, 2021 #1 What is the worst case time complexity of bead sort (S= sum of input elements)? A. O B. O(S) C. O(n$^{2}$) D. O(n log n)
What is the worst case time complexity of bead sort (S= sum of input elements)? A. O B. O(S) C. O(n$^{2}$) D. O(n log n)
N Ngọc Hùng Member Sep 21, 2021 #2 Answer: b Explanation: Worst case time complexity of bead sort is O(S). It is because we drop each bead as a separate operation. Upvote 0 Downvote
Answer: b Explanation: Worst case time complexity of bead sort is O(S). It is because we drop each bead as a separate operation.