Skip to content

Instantly share code, notes, and snippets.

@deepaksinghvi
Created May 1, 2019 14:38
Show Gist options
  • Save deepaksinghvi/b27349c85c6037b5d89205937bfb3307 to your computer and use it in GitHub Desktop.
Save deepaksinghvi/b27349c85c6037b5d89205937bfb3307 to your computer and use it in GitHub Desktop.
Deque.java
/**
* Author: Deepak Singhvi
*/
class Deque {
private Integer data;
Deque next;
Deque prev;
public Integer getData() {
return data;
}
public void setData(Integer data) {
this.data = data;
}
public Deque getNext() {
return next;
}
public void setNext(Deque next) {
this.next = next;
}
public Deque getPrev() {
return prev;
}
public void setPrev(Deque prev) {
this.prev = prev;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment