Skip to content
This repository was archived by the owner on Sep 7, 2025. It is now read-only.

Conversation

@LuizGuerra
Copy link
Contributor

No description provided.


class Node (e):
__init__ (.self, e):
next = null
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In python don't exists null use Ǹone instead
Please use self --> self.next = None


class Stack {

def __init__ (.self):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove the point. Write self instead of .self

My github github.com/LuizGuerra
'''

class Stack {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove the { and }

}

class Node (e):
__init__ (.self, e):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Write def before __init__.

@christianbender christianbender added bug Something isn't working invalid This doesn't seem right on hold labels Mar 3, 2019
return n.element

}

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please write a main-function with some test cases

@abranhe abranhe merged commit 2d9f7f9 into AllAlgorithms:master Oct 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

bug Something isn't working invalid This doesn't seem right on hold

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants