[유진호] sprint13#93
Merged
O-Seonsik merged 1 commit intoDec 16, 2025
Hidden character warning
The head ref may contain hidden characters: "algorithm-\uc720\uc9c4\ud638"
Merged
Conversation
Collaborator
|
구현, 주석, 테스트 모두 훌륭합니다. 그동안 과정 수료하시느라 고생 많으셨습니다!! |
a8d1cfb
into
codeit-bootcamp-nodejs:algorithm-유진호
1 check passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
미션 목표
요구사항
다음 자료 구조를 구현해
algorithm폴더에 저장해 주세요.링크드 리스트 (Linked List)
LinkedList.jsLinkedListaddNode(value): 리스트의 끝에 새 노드를 추가findNode(value): 주어진 값을 가지는 노드를 찾아 리턴insertAfter(targetValue, newValue): 특정 값을 가진 노드 뒤에 새 노드 추가removeAfter(targetValue): 특정 값을 가진 노드 뒤의 노드를 삭제이중 링크드 리스트 (Doubly Linked List)
DoublyLinkedList.jsDoublyLinkedListaddToHead(value): 리스트의 앞쪽에 노드 추가addToTail(value): 리스트의 뒤쪽에 노드 추가insertAfter(targetValue, newValue): 특정 값을 가진 노드 뒤에 새 노드 추가findNode(value): 값을 가진 노드를 찾아 반환합니다.removeNode(value): 특정 값을 가진 노드 삭제큐 (Queue)
Queue.jsQueueenqueue(value): 큐의 맨 뒤에 값을 추가dequeue(): 큐의 앞에서 값을 제거하고 그 값을 리턴peek(): 큐의 앞에 있는 값을 제거하지 않고 리턴isEmpty(): 큐가 비어 있는지 불린형으로 리턴스택 (Stack)
Stack.jsStackpush(value): 스택의 맨 위에 값을 추가pop(): 스택의 맨 위 값을 제거하고 그 값을 리턴peek(): 스택의 맨 위 값을 제거하지 않고 그 값을 리턴isEmpty(): 스택이 비어 있는지 불린형으로 리턴이진 탐색 트리 (Binary Search Tree)
BinarySearchTree.jsBinarySearchTreeinsert(value): 트리에 값 추가find(value): 주어진 값을 찾고 해당 노드를 리턴remove(value): 트리에서 해당 값을 삭제다음 알고리즘을 JavaScript로 구현해
algorithm/sorts.js파일에 추가로 작성해 주세요.힙 정렬
heapsort()제출 안내
algorithm폴더를 만들고 그 아래에 만든 파일들을 저장해 주세요.멘토에게
Hash Table
put / get / remove / has포함Graph
BFS / DFS
CI
Vitest테스트 코드를 작성했습니다.sort.test.ts(3): HeapSort 추가datastructures.test.js(12): LinkedList, DoublyLinkedList, Queue, Stack, BinarySearchTreeextra-datastructures.test.js(10): HashTable, Graph, BFS, DFS