Skip to content

Update StackLL.java#8

Open
ayushmitra06 wants to merge 1 commit intoshradha-khapra:mainfrom
ayushmitra06:patch-1
Open

Update StackLL.java#8
ayushmitra06 wants to merge 1 commit intoshradha-khapra:mainfrom
ayushmitra06:patch-1

Conversation

@ayushmitra06
Copy link

Changes made:

Removed public static from the head variable in the Stack class. Updated the push method to correctly handle the case when the stack is initially empty. Corrected the access modifiers for the Node class and head variable.

Changes made:

Removed public static from the head variable in the Stack class.
Updated the push method to correctly handle the case when the stack is initially empty.
Corrected the access modifiers for the Node class and head variable.
@ayushmitra06
Copy link
Author

there were some errors before as code was not working. Please see now

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