-
Notifications
You must be signed in to change notification settings - Fork 172
Conversation
|
|
||
| class Node (e): | ||
| __init__ (.self, e): | ||
| next = null |
There was a problem hiding this comment.
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): |
There was a problem hiding this comment.
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
data-structures/stack/stack.py
Outdated
| My github github.com/LuizGuerra | ||
| ''' | ||
|
|
||
| class Stack { |
There was a problem hiding this comment.
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): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Write def before __init__.
| return n.element | ||
|
|
||
| } | ||
|
|
There was a problem hiding this comment.
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
No description provided.