Skip to content

Fix misleading phrase "arrays of lists" in stack implementation description #253

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

danmondra
Copy link

This PR fixes a minor but potentially confusing phrase in the explanation of stack implementations. This small change is intended to provide clarity to readers.

The original sentence:

"We can make use of linked lists or arrays of lists."

has been updated to:

"Stacks can be implemented using either arrays or linked lists."

Reason for Change

The phrase "arrays of lists" is misleading when discussing stack implementations. It may suggest a 2D structure or a collection of lists, which is not relevant for implementing a basic stack. Stacks are most commonly implemented using either:

  1. Arrays (for static or dynamic sizing)
  2. Linked lists (for dynamic memory usage)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant