Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mohamedashraf1/queues
two different Queues to handle generic data type and a client program
https://github.com/mohamedashraf1/queues
Last synced: 10 days ago
JSON representation
two different Queues to handle generic data type and a client program
- Host: GitHub
- URL: https://github.com/mohamedashraf1/queues
- Owner: mohamedashraf1
- Created: 2020-07-03T12:56:14.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-07-03T13:40:17.000Z (over 4 years ago)
- Last Synced: 2023-10-09T21:29:21.735Z (about 1 year ago)
- Language: Java
- Homepage:
- Size: 1.01 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Queues
There are 2 different Queues in this project as follows
## 1- double-ended Queue
which is a generalization of a stack and a queue that supports adding and removing items from either the front or the back of the data structure.## 2- Randomized queue.
A randomized queue is similar to a stack or queue, except that the item removed is chosen uniformly at random among items in the data structure.and there is a Client Application
## Permutation.java
that takes an integer k as a command-line argument;
reads a sequence of strings from standard input using StdIn.readString();
and prints exactly k of them, uniformly at random