Number of 'ADD' and 'REMOVE' operations required to access n/2th element of a queue of 'n' elements so that the original queue remains the same after the access is:
a) 4*n
b) 8*n
c) 4*n-1
d) 8*n-1

The answer if a). Somebody please tell me how???

The answer to the poll is terrible! How are we supposed to respond to "how was the question?"
Tasty? Needs salt? Entertaining?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.