problem2

package
v0.0.0-...-cb75c49 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2025 License: MIT Imports: 0 Imported by: 0

README

Problem 2

Create a Stack data structure.

Methods:

  • Push

Add an element to the top of the Stack.

  • Pop

Remove an element at the top of the Stack.

  • Peek

Get the element at the top of the Stack without removing it.

  • Size

Get the size of the Stack.

  • IsEmpty

Check if the Stack is empty.

! Please check the tests for signature and more examples.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Stack

type Stack struct{}

Jump to

Keyboard shortcuts

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