diff --git a/Data-Structures/Stack/Stack.js b/Data-Structures/Stack/Stack.js index 8be28006a7..f95b940599 100644 --- a/Data-Structures/Stack/Stack.js +++ b/Data-Structures/Stack/Stack.js @@ -30,7 +30,7 @@ var Stack = (function () { this.top-- var result = this.stack[this.top] - delete this.stack[this.top] + this.stack = this.stack.splice(0, this.top) return result }
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: