download Mastguru Android App

Question Detail

The complexity of Bubble sort algorithm is

  • O(n)
  • O(log n)
  • O(n2)
  • O(n log n)
Similar Questions :

1. Which of the following data structure is linear data structure

  • Trees
  • Graphs
  • Array
  • None of above

2. What are the minimum number of queues needed to implement the priority queue?

  • One
  • Two
  • Three
  • Four

3. minimum number of stacks of size n required to implement a queue of size n

  • One
  • Two
  • Three
  • Four

4. ++i is equivalent to

  • i = i + 2
  • i = i + 1
  • i = i + i
  • i = i - 1

5. Recursive problems are implemented by

  • queues
  • stacks
  • linked lists
  • strings
Read more from - Data Structure Questions Answers - Chapter 1
Post a comment