code-sherpas / kollections

Kollections is a Kotlin open source library to fill the gap that currently exists in the Kotlin Standard Library regarding data structures. :rocket:
MIT License
9 stars 9 forks source link

Implement `push(element: E)` function for Stacks #27

Closed ashikka closed 3 years ago

ashikka commented 3 years ago

Taking reference from issue #14, implement the push(element: E) function for a Stack. This function adds an element to the top of the stack.

First step

Search, read, and understand information about stacks and how they are implemented.

Second step

After you open a pull request with the data structure implementation, wait for comments or approval from @code-sherpas/kollections-maintainers.

Minimum acceptance criteria

Related resources:

thebongy commented 3 years ago

@ashikka I would like to take this up, can you assign this issue to me?

ashikka commented 3 years ago

@ashikka I would like to take this up, can you assign this issue to me?

Sure thing!