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 |
Tags
- javascript 게임
- hyperledger
- 하이퍼레저
- DataStructure
- al
- 컴퓨터공학개론
- javascript 초급
- 자바스크립트
- 제로초
- 블록체인개론
- 컴퓨터사이언스
- 블록체인
- 파이썬 알고리즘
- 생활코딩
- js
- Nodejs 프로젝트
- SQL
- 프로그래밍
- Javascript
- hyperledger fabric
- vs code
- javascirpt
- 생활코딩 nodejs
- 블록몽키
- nodejs
- 깃
- algorithum
- mysql
- 관계형데이터베이스
- Blockmonkey
Archives
- Today
- Total
Blockmonkey
[AL&DS] 큐 본문
// 큐 (FIFO)
type Que []interface{}
func (q *Que) addQue(_appendNum int) Que {
*q = append(*q, _appendNum)
return *q
}
func (q *Que) removeQue() interface{} {
if len(*q) <= 0 {
return 0
}
botIdx := 0
data := (*q)[botIdx]
*q = (*q)[botIdx+1:]
// fmt.Println(data)
// fmt.Println(*q)
return data
}
'Web Development > CommonSense' 카테고리의 다른 글
| [AL&DS] 팩토리얼 (0) | 2022.11.12 |
|---|---|
| [AL&DS] 피보나치 (0) | 2022.11.12 |
| [AL&DS] 스택 (0) | 2022.11.12 |
| [AL&DS] 삽입정렬 (0) | 2022.11.12 |
| [AL&DS] 선형해결법 (0) | 2022.11.06 |