GithubHelp home page GithubHelp logo

applesauceq's Introduction

AppleSauceQ

Hasif Ahmed, Wenting Li, Kerwin Chen

Ordered To-Do List:

  1. do isEmpty;
  2. do size;
  3. do offerFirst;
  4. do offerLast;
  5. do peekFirst;
  6. do peekLast;
  7. do pollLast;
  8. do pollFirst

Summary: We plan to develop our interface according to our to do list.

The methods we think that are essential are...

 public boolean	offerFirst(E e)

//Inserts the specified element at the front of this deque unless it would violate capacity restrictions.

public boolean	offerLast(E e)

//Inserts the specified element at the end of this deque unless it would violate capacity restrictions.

public E	peekFirst()

//Retrieves, but does not remove, the first element of this deque, or returns null if this deque is empty.

public E	peekLast()

//Retrieves, but does not remove, the last element of this deque, or returns null if this deque is empty.

public E	pollFirst()

//Retrieves and removes the first element of this deque, or returns null if this deque is empty.

public E	pollLast()

//Retrieves and removes the last element of this deque, or returns null if this deque is empty.

public int	size()

//Returns the number of elements in this deque.

We plan on using ArrayList as our underlying class due to the fact that a deque focuses on both ends of a data set and an ArrayList makes it easy to access any side of the ArrayList and make modifications.

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.