[TypeScript] 자료 구조로 담아내기. #13 - 연결 리스트(with. 탐색)
이번 편은 이전 편으로부터 이어집니다. null 노드의 도입으로 코드는 한 층 간결해졌습니다. 그럼, 이제 탐색도 마저 구현해 볼까요? class SinglyLinkedListNodeImpl<T> implements SinglyLinkedListNode<T> { search(element: T): SinglyLinkedList<T> { let curr: SinglyLinkedListNode<T> = this; ...
![[TypeScript] 자료 구조로 담아내기. #13 - 연결 리스트(with. 탐색)](/_next/image?url=https%3A%2F%2Fcdn.hashnode.com%2Fres%2Fhashnode%2Fimage%2Fstock%2Funsplash%2F11KDtiUWRq4%2Fupload%2F9d73119b329ff023d19fc6162630671c.jpeg&w=3840&q=75)
![[TypeScript] 자료 구조로 담아내기. #7 - 배열(with. 정렬 유지)](/_next/image?url=https%3A%2F%2Fcdn.hashnode.com%2Fres%2Fhashnode%2Fimage%2Fstock%2Funsplash%2FUmtATYzUMDs%2Fupload%2F7157668ea3c990186166224d8405c0ed.jpeg&w=3840&q=75)
![[TypeScript] 자료 구조로 담아내기. #6 - 배열(with. 이진 탐색)](/_next/image?url=https%3A%2F%2Fcdn.hashnode.com%2Fres%2Fhashnode%2Fimage%2Fstock%2Funsplash%2FB0jijv2X-U8%2Fupload%2F248ea6fa1aafed32e19fcde9f6942f56.jpeg&w=3840&q=75)