![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
golang编程
〓噯═硪
这个作者很懒,什么都没留下…
展开
-
golang语言数据结构与算法--双向队列
package mainimport ("fmt" "os" "errors")// 使用结构体管理环形队列type CircleQueue struct{ maxSize int array [5]int head int //指向队列队首 tail int //指向队列队尾}// 入队列Pushfunc (...原创 2020-04-29 17:58:21 · 654 阅读 · 0 评论 -
golang语言数据结构与算法---单向队列
package mainimport ("fmt" "os" "errors")type Queue struct{ maxSize int array [4]int front int rear int}func (this *Queue)AddQueue(val int)(err error){ if ...原创 2020-04-29 16:34:06 · 209 阅读 · 0 评论