René's URL Explorer Experiment


Title: #155 - Min Stack - LeetCode JavaScript Solutions

Open Graph Title: #155 - Min Stack - LeetCode JavaScript Solutions

X Title: #155 - Min Stack - LeetCode JavaScript Solutions

Description: Design a stack that supports push, pop, top, and retrieving the minimum element in constant time. Implement the MinStack class: MinStack() ...

Open Graph Description: Design a stack that supports push, pop, top, and retrieving the minimum element in constant time. Implement the MinStack class: MinStack() ...

X Description: Design a stack that supports push, pop, top, and retrieving the minimum element in constant time. Implement the MinStack class: MinStack() ...

Keywords:

Opengraph URL: https://leetcodejavascript.com/solutions/min-stack

direct link

Domain: leetcodejavascript.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"Code","url":"https://leetcodejavascript.com/solutions/min-stack","name":"#155 - Min Stack - LeetCode JavaScript Solutions","description":"Design a stack that supports push, pop, top, and retrieving the minimum element in constant time. Implement the MinStack class: MinStack() ...","programmingLanguage":"JavaScript","codeRepository":"https://github.com/JoshCrozier/leetcode-javascript","codeSampleType":"JavaScript","text":"var MinStack = function() {\n this.stack = [];\n};\n\n/**\n * @param {number} val\n * @return {void}\n */\nMinStack.prototype.push = function(val) {\n this.stack.push({ val, min: this.stack.length ? Math.min(val, this.getMin()) : val });\n};\n\n/**\n * @return {void}\n */\nMinStack.prototype.pop = function() {\n this.stack.pop();\n};\n\n/**\n * @return {number}\n */\nMinStack.prototype.top = function() {\n return this.stack[this.stack.length - 1].val;\n};\n\n/**\n * @return {number}\n */\nMinStack.prototype.getMin = function() {\n return this.stack.length ? this.stack[this.stack.length - 1].min : 0;\n};","keywords":"LeetCode 155, #155 - Min Stack, Medium, JavaScript solution","learningResourceType":"Code","isAccessibleForFree":true,"educationalLevel":"intermediate","interactivityType":"mixed"}

authorLeetCodeJavascript.com
og:typearticle
og:imagehttps://leetcodejavascript.com/og-image.jpg
og:site_nameLeetCode JavaScript Solutions
twitter:cardsummary_large_image
twitter:urlhttps://leetcodejavascript.com/solutions/min-stack
twitter:imagehttps://leetcodejavascript.com/og-image.jpg
twitter:creator@joshcrozier
theme-color#1f2937

Links:

LeetCodeJavascript.com https://leetcodejavascript.com/
Star on GitHubhttps://github.com/JoshCrozier/leetcode-javascript
Back to all solutionshttps://leetcodejavascript.com
View on LeetCode https://leetcode.com/problems/min-stack/
View on GitHubhttps://github.com/JoshCrozier/leetcode-javascript/blob/master/solutions/0155-min-stack.js
Stack https://leetcodejavascript.com/tags/stack
Designhttps://leetcodejavascript.com/tags/design
Josh Crozierhttps://joshcrozier.com

Viewport: width=device-width,initial-scale=1

Robots: index, follow


URLs of crawlers that visited me.