BucketSort

  • Last Updated : 05 Mar, 2016

Bucket sort is mainly useful when input is uniformly distributed over a range. For example, consider the following problem.
Sort a large set of floating point numbers which are in range from 0.0 to 1.0 and are uniformly … More on Bucket Sort
 

Question 1
What is the worst case performance for bucket sort?
A
O(n)
B
O(n logn)
C
O(n^2)
D
O(1)
BucketSort    
Discuss it


Question 2
Which of the following statements is/are true? P: In a scripting language like javaScript, types are typically associated with values, not variables. Q: It is not possible to show images on a web page without the tag of HTML Select the correct answer from the given below:
A
P only
B
Q only
C
Both P and Q
D
Neither P nor Q
NTA UGC NET 2019 June - II    Web Programming UGC    BucketSort    
Discuss it


Question 2 Explanation: 
Only P True, because variables are typically not declared in scripting language is, so there is no opportunity to assign them a type.
There are 2 questions to complete.

 

Coding practice for sorting

 

My Personal Notes arrow_drop_up


Writing code in comment? Please use ide.geeksforgeeks.org, generate link and share the link here.