[Java] Doubly linked list
- 최초 등록일
- 2005.04.05
- 최종 저작일
- 2005.04
- 압축파일
- 가격 1,000원
소개글
이중 링크드 리스트 구현 소스코드 입니다.
컴파일 실행환경
java 컴파일러
본문내용
public class DList1 {
/**
* head references the first node.
* tail references the last node.
*
* DO NOT CHANGE THE FOLLOWING FIELD DECLARATIONS.
*/
private DListNode1 head;
private DListNode1 tail;
/* DList1 invariants:
* 1) For any DListNode x in a DList, if x.next == y, then y.prev == x.
* 2) For any DListNode x in a DList, if x.prev == y, then y.next == x.
*/
/**
* DList1() constructor for an empty DList1.
*/
public DList1() {
head = null;
tail = null;
}
압축파일 내 파일목록
DList2.java
DListNode1.java
DListNode2.java
DList1.java
참고 자료
없음