[Data Structure] Singly Linked List (3)
이번 포스트에선 header에 정의한대로 Data Node를 삽입하되, 그걸 head node의 뒤에 삽입할 것이냐, tail node의 앞에 삽입할 것이냐에 대한 의미를 부여할 수 있겠다. 구현은 다음과 같다.1234567891011121314151617181920int insertFirst(List *lp, int data){ Node *tmp; if(lp == NULL){ return -1; } tmp = (Node *)malloc(sizeof(Node)); if(tmp == NULL){ return -1; } tmp->data = data; tmp->next = lp->head->next; lp->head->next = tmp; lp->size += 1; return 0;}Colored by Co..
Study/Algorithm
2017. 3. 28. 00:40
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- bias
- Policy Gradient
- processing
- Windows Phone 7
- SketchFlow
- Expression Blend 4
- Kinect SDK
- Variance
- Kinect for windows
- Gan
- Pipeline
- TensorFlow Lite
- End-To-End
- 파이썬
- windows 8
- Kinect
- 딥러닝
- ColorStream
- RL
- dynamic programming
- reward
- PowerPoint
- Python
- 한빛미디어
- DepthStream
- Distribution
- Off-policy
- arduino
- Offline RL
- 강화학습
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함