About 52 results
Open links in new tab
  1. Difference between "enqueue" and "dequeue" - Stack Overflow

    Mar 5, 2015 · Enqueue and Dequeue tend to be operations on a queue, a data structure that does exactly what it sounds like it does. You enqueue items at one end and dequeue at the other, …

  2. Enqueue, Dequeue and ViewQueue in Java - Stack Overflow

    Java queues don't have enqueue and dequeue methods, these operations are done using the following methods: Enqueuing: add(e): throws exception if it fails to insert the object offer(e): …

  3. How can I implement a queue using two stacks? - Stack Overflow

    Suppose we have two stacks and no other temporary variable. Is to possible to "construct" a queue data structure using only the two stacks?

  4. c - キューで関数enqueueとdequeueを行った時の配列内は、どの …

    May 18, 2022 · 想定通りの出力ができなかった理由としては、Q [tail]、Q [head]で配列外参照をしたため想定通りにならなかったと思います。 main内の処理の提示されたソースコードに …

  5. ConcurrentQueue with many enqueuers and single dequeuer

    Dec 3, 2024 · I'm using a ConcurrentQueue<T>. I need: multiple consumers to enqueue items a single consumer to dequeue all items in one go during the dequeue, to lock the queue …

  6. dequeue and enqueue methods in queue implementation

    Dec 1, 2016 · Your enqueue () method is wrong, when you call it on a empty queue it sets first and last to x and then last.next (i.e. x) to x, so the last entry in the queue points back to itself.

  7. Whats the difference between enqueue/dequeue and push/pop in …

    Dec 31, 2022 · Here for example: Data structures: explanation of pop, push, dequeue, enqueue in this type of exercise However in reality, push/pop works for both stacks and queues.

  8. How to Enqueue a list of items in C#? - Stack Overflow

    Oct 2, 2013 · How to Enqueue a list of items in C#? Asked 12 years, 3 months ago Modified 4 years, 1 month ago Viewed 38k times

  9. Queue Class, dequeue and enqueue ? python - Stack Overflow

    Dec 13, 2013 · So I have this question and it says create a class queue and make the method dequeue and enqueue Here's what I have so far, could someone direct me on the right track? …

  10. c++ - How does this enqueue function work? - Stack Overflow

    Jul 31, 2013 · How does this enqueue function work? Asked 12 years, 5 months ago Modified 10 years, 3 months ago Viewed 21k times