Skip to content

Jiqing1107/Linkedlist-Practice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Linkedlist-Practice

MyLinkedList.java implements several functions handling a linked list. There are several things need to be paid attention:

  1. When adding or removing an element, the size of the linked list should be changed accordingly.
  2. When adding, removing or setting an element, we first need to check whether the element is null. We also need to check whether index is out of bounds (lower bound and upper bound both).
  3. When removing an element, we need to consider three cases: the linked list is empty, the linked list has only one element and the linked list has more than one element.

Admittedly, it's a little bit challenging for a careless person like me -^-.

MyLinkedListTester.java is used to test the functions implemented in MyLinkedList.java.

About

A practice of the functions handling a linked list.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages