mirror of
https://github.com/blindlobstar/go-interview-problems
synced 2025-04-23 18:25:15 +00:00
26 lines
295 B
Go
26 lines
295 B
Go
package main
|
|
|
|
import (
|
|
"errors"
|
|
)
|
|
|
|
var ErrQueueFull = errors.New("queue is full")
|
|
|
|
type Queue struct{}
|
|
|
|
func NewQueue(size int) *Queue {
|
|
return &Queue{}
|
|
}
|
|
|
|
func (q *Queue) Push(val int) error {
|
|
return nil
|
|
}
|
|
|
|
func (q *Queue) Pop() int {
|
|
return -1
|
|
}
|
|
|
|
func (q *Queue) Peek() int {
|
|
return -1
|
|
}
|