1 votes 1 votes Assuming there are n keys and each key is in the range [0, m – 1]. The run time of bucket sort is (A) O(n) (B) O(n lgn) (C) O(n lgm) (D) O(n + m) Algorithms algorithms sorting time-complexity + – Sanjay Sharma asked May 7, 2016 • retagged Jun 21, 2022 by makhdoom ghaya Sanjay Sharma 1.0k views answer comment Share Follow See all 3 Comments See all 3 3 Comments reply rude commented May 7, 2016 reply Follow Share Is it option C? 0 votes 0 votes MIRIYALA JEEVAN KUMA commented Jan 30, 2018 reply Follow Share in the worst case it will be O(n2) 0 votes 0 votes Sanjay Sharma commented Feb 21, 2018 reply Follow Share should it be count sort ? 0 votes 0 votes Please log in or register to add a comment.
1 votes 1 votes O(n+m) time complexity of Bucket Sort ManojK answered May 7, 2016 ManojK comment Share Follow See all 2 Comments See all 2 2 Comments reply divya singhal commented May 11, 2016 reply Follow Share But bucket sort runs in linear time dat is O(n) dn hw it is O(m+n)? 1 votes 1 votes Sanjay Sharma commented Oct 7, 2017 reply Follow Share why not A 0 votes 0 votes Please log in or register to add a comment.