Skip to content

Implement pop() function for Stacks #28

@ashikka

Description

@ashikka

Taking reference from issue #14, implement the pop() function for a Stack. This function removes an element from 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

  • The implementation must be well documented with proper Javadoc at Class and function levels.
  • The implementation must be tested with automatic tests that cover all relevant cases and situations.
  • The implementation must be generic.
  • The implementation must have the expected time complexity according to Computer Science. Here you can find a very helpful cheat sheet.
  • Compare efficiency using a dynamic array as underlying data structure vs using a singly linked list. Choose the most efficient.

Related resources:

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions