반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- Call Stack
- reading 'edgesOut'
- vscode extension
- Styled Components
- java
- react-native-snap-carousel
- likelion
- 네트워크 통신 요청
- 1966 프린터큐
- react immer
- 브랜치 이름 변경 명령어
- styled-components 설치 오류
- git branch -m
- styled-compoents
- styled components 설치 안됨
- 단일링크드리스트
- javascript 비동기
- Code Splitting
- 최단거리알고리즘
- Javascript
- react
- js fetch
- React 공식문서
- reading 'useDebugValue'
- styled-components extension
- carouselButton
- 테스크 큐
- styled-components 버전 문제
- fetch()
- use-immer
Archives
- Today
- Total
목록Problem Solving/data structure (1)
Keep Going

개념 정보를 담고 있는 노드가 연결 관계로 구성된 구조 노드 : 데이터 & 다른 노드의 참조 data next head tail 삭제와 삽입에 최적화 되어 있음 삽입 O(1) 삭제 O(1) 탐색 O(N) 구현 class Node: def __init__(self, data=None,next=None): self.data = data self.next = next def __str__(self): return str(self.data) class SinglyLinkedList: def __init__(self): self.head = None self.tail = None self.size = 0 # 맨 앞에 노드 삽입 O(1) def insert_front(self, num): new_node = Nod..
Problem Solving/data structure
2024. 4. 8.