Code Monkey home page Code Monkey logo

sp02-lists-stacks-and-queue's Introduction

# Short Project 02 SP2: Implementation of Bounded Queue
 
 * Rahul Nalawade
 * Bharath Rudra
 
 Date: 2018-Aug-08
 

1. Extract the rsn170330.zip 

2. Compile: 
	$javac rsn170330/*.java

3. Run: 
	$java rsn170330.BoundedQueue

4. You may input integers 
	- 1 <space><integer> to offer(x) where x is the integer
	- 2 to poll()
	- 3 to peek()
	- 4 to call size() 
	- 5 isEmpty()
	- 6 clear()
	- 7 toArray()
	- 8 to Quit

Note:

- Pointers (front,rear) are initially at (-1,-1).

- whenever the queue is emptied, pointers are reset to (-1,-1)

- whenever the element is added (offer), rear is incremented and then added at rear

- whenever the element is removed (poll), front is incremented returning the correct front

sp02-lists-stacks-and-queue's People

Contributors

rahul1947 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

geetu-sharma

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.