Just another update
This commit is contained in:
parent
a25938f123
commit
00a190b0a6
6591 changed files with 94363 additions and 23227 deletions
|
|
@ -4,5 +4,5 @@ function Stack() {
|
|||
this.push = function(element) {this.data.push(element)}
|
||||
this.pop = function() {return this.data.pop()}
|
||||
this.empty = function() {return this.data.length == 0}
|
||||
this.peek = function() {return this.data[0]}
|
||||
this.peek = function() {return this.data[this.data.length - 1]}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue