implement-stack-using-queues

command
v0.0.0-...-2947bdb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 17, 2025 License: Apache-2.0 Imports: 0 Imported by: 0

README

225. 用队列实现栈

题目大意

题目要求用队列实现一个栈的基本操作:push(x)、pop()、top()、empty()。

视频讲解

https://www.bilibili.com/video/BV1Fd4y1K7sm?spm_id_from=333.788.player.switch&vd_source=f881def7ea7cf10e6fa73627efe940dd

解题思路

按照题目要求实现即可。

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL