- Implement a fixed-sized double-ended queue (FixedDeque).
- Implement a dynamic-sized circular queue.
- Imagine a situation where lots of people are standing in a queue to enter a temple and the queue gets enqueued by a group of people. Similarly, it gets dequeued by a group of people. So we need to have the enqueue() and dequeue() APIs to support collections instead of just a single element.
- To enter into a temple, there are three queues and each queue is associated with a ticket system. All of these three queues get served based on their priority. The higher the ticket cost, the higher the priority they get served. Design such a kind of system using a queue that understands priority. The ticket prices are as follows:
- Free—the longer queue as more people opt for it
- ₹50—A bit shorter queue
- ₹100— The Shortest queue
- Implement a queue...
Germany
Slovakia
Canada
Brazil
Singapore
Hungary
Philippines
Mexico
Thailand
Ukraine
Luxembourg
Estonia
Lithuania
Norway
Chile
United States
Great Britain
India
Spain
South Korea
Ecuador
Colombia
Taiwan
Switzerland
Indonesia
Cyprus
Denmark
Finland
Poland
Malta
Czechia
New Zealand
Austria
Turkey
France
Sweden
Italy
Egypt
Belgium
Portugal
Slovenia
Ireland
Romania
Greece
Argentina
Malaysia
South Africa
Netherlands
Bulgaria
Latvia
Australia
Japan
Russia