algorithm-archive
algorithm-archive copied to clipboard
Implemented stack and queue in C#
What I don't like about this PR is that the dequeue operation doesn't return the dequeued object. Now that said neither does the cpp version. I would personally prefer what rust, java and ts do currently, because in most use cases you want to dequeue on object and then still work with it.