Click To Get Off-Campus Placement Jobs Info !!!
FREE!!! Latest Nagarro FULL Aptitude Mock Test for Practice
Practice 5+ Mettl Aptitude Mock Test

Societe Generale Written Test Qs.(Data Structures) :: Queue - Discussion

2 / 224

Choose the correct option.

Time taken for addition of element in queue is

AO(1)

BO(n)

CO(log n)

DNone of these options

Answer: Option (Login/Signup)

Show Explanation

I think this answer should be A. O(1). because this question is asked about the normal queue.



For priority queue this should be O(log n).

Asked In :: BOA (Bank of America) Societe Generale Capgemini

Post Your Answer Here:     

Reply    
Rate This: +4 -0 +
    Report


Report Error

Please Login First Click Here