자료구조 직접 구현 해보기3 - LinkedList ( Feat. Java)

이번에는, LinkedList를 직접 구현해 보았다.
역시 ForEach문을 사용할 수 있도록 Iterable 인터페이스를 상속받았다.
add, 특정위치 add, addFirst, addLast, remove, 특정위치 remove,
같은 오브젝트 전체 remove, removeFirst, removeLast, get, size, clear 의 기능들을 구현해보았다.

index 값과 size에 따라
NagativeArraySizeException, IndexOutOfBoundsException, NoSuchElementException
을 던지도록 구현했다.

댓글

이 블로그의 인기 게시물

Spring Boot Actuator readiness, liveness probes on k8s

About Kafka Basic

sneak peek jitpack

About idempotent

About G1 GC

About ZGC

About JVM Warm up

I need to know a little JVM

HackerRank Java Between Two Sets

Java - HashMap (feat. LinkedList, Tree.. maybe Later)