GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

No menu could be recovered. Follow the blue links in the page.

This view

  • Original page
  • New address

GeezerVison is showing leetcodejavascript.com — Stack LeetCode Problems | JavaScript Solutions

Stack | LeetCode Problems

154 Stack solutions to LeetCode solutions.

View Source Code on GitHub
All 2765 Array 1587 String 683 Hash Table 587 Math 485 Dynamic Programming 458 Sorting 384 Greedy 348 Depth-First Search 293 Binary Search 241 Tree 227 Breadth-First Search 224 Matrix 223 Two Pointers 200 Bit Manipulation 197 Binary Tree 175 Prefix Sum 159 Stack 154 Heap Priority Queue 152 Simulation 150 Counting 134 Graph 133 Design 123 Sliding Window 112 Backtracking 104 Union Find 79 Enumeration 78 Linked List 78 Ordered Set 60 Monotonic Stack 55 Trie 51 Number Theory 47 Divide and Conquer 46 Recursion 45 Bitmask 41 Queue 41 Binary Search Tree 40 Segment Tree 38 Memoization 36 Geometry 36 Combinatorics 35 Topological Sort 33 Hash Function 30 Binary Indexed Tree 28 Game Theory 26 String Matching 23 Shortest Path 23 Interactive 23 Rolling Hash 22 Data Stream 20 Brainteaser 16 Monotonic Queue 14 Randomized 12 Merge Sort 12 Doubly-Linked List 11 Counting Sort 10 Iterator 9 Probability and Statistics 7 Quickselect 7 Suffix Array 6 Bucket Sort 6 Line Sweep 5 Minimum Spanning Tree 5 Reservoir Sampling 4 Strongly Connected Component 3 Eulerian Circuit 3 Radix Sort 3 Rejection Sampling 2 Biconnected Component 1

Stack Problems View all solutions →

Valid Parentheses

#20 Easy

Longest Valid Parentheses

#32 Hard

Trapping Rain Water

#42 Hard

Simplify Path

#71 Medium

Largest Rectangle in Histogram

#84 Hard

Maximal Rectangle

#85 Hard

Binary Tree Inorder Traversal

#94 Easy

Flatten Binary Tree to Linked List

#114 Medium

Reorder List

#143 Medium

Binary Tree Preorder Traversal

#144 Easy

Binary Tree Postorder Traversal

#145 Easy

Evaluate Reverse Polish Notation

#150 Medium

Min Stack

#155 Medium

Binary Search Tree Iterator

#173 Medium

Basic Calculator

#224 Hard

Implement Stack using Queues

#225 Easy

Basic Calculator II

#227 Medium

Implement Queue using Stacks

#232 Easy

Palindrome Linked List

#234 Easy

Verify Preorder Sequence in Binary Search Tree

#255 Medium

Closest Binary Search Tree Value II

#272 Hard

Remove Duplicate Letters

#316 Medium

Create Maximum Number

#321 Hard

Verify Preorder Serialization of a Binary Tree

#331 Medium

Flatten Nested List Iterator

#341 Medium

Nested List Weight Sum II

#364 Medium

Mini Parser

#385 Medium

Longest Absolute File Path

#388 Medium

Decode String

#394 Medium

Remove K Digits

#402 Medium

Convert Binary Search Tree to Sorted Doubly Linked List

#426 Medium

Ternary Expression Parser

#439 Medium

Add Two Numbers II

#445 Medium

132 Pattern

#456 Medium

Find Permutation

#484 Medium

Zuma Game

#488 Hard

Next Greater Element I

#496 Easy

Next Greater Element II

#503 Medium

Construct Binary Tree from String

#536 Medium

Shortest Unsorted Continuous Subarray

#581 Medium

N-ary Tree Preorder Traversal

#589 Easy

N-ary Tree Postorder Traversal

#590 Easy

Tag Validator

#591 Hard

Exclusive Time of Functions

#636 Medium

Maximum Binary Tree

#654 Medium

Valid Parenthesis String

#678 Medium

Baseball Game

#682 Easy

Max Stack

#716 Hard

Number of Atoms

#726 Hard

Asteroid Collision

#735 Medium

Parse Lisp Expression

#736 Hard

Daily Temperatures

#739 Medium

Max Chunks To Make Sorted II

#768 Hard

Max Chunks To Make Sorted

#769 Medium

Basic Calculator IV

#770 Hard

Basic Calculator III

#772 Hard

Backspace String Compare

#844 Easy

Car Fleet

#853 Medium

Score of Parentheses

#856 Medium

Decoded String at Index

#880 Medium

Maximum Frequency Stack

#895 Hard

Increasing Order Search Tree

#897 Easy

Online Stock Span

#901 Medium

Sum of Subarray Minimums

#907 Medium

Minimum Add to Make Parentheses Valid

#921 Medium

Stamping The Sequence

#936 Hard

Validate Stack Sequences

#946 Medium

Maximum Width Ramp

#962 Medium

Odd Even Jump

#975 Hard

Check If Word Is Valid After Substitutions

#1003 Medium

Clumsy Factorial

#1006 Medium

Construct Binary Search Tree from Preorder Traversal

#1008 Medium

Next Greater Node In Linked List

#1019 Medium

Remove Outermost Parentheses

#1021 Easy

Remove All Adjacent Duplicates In String

#1047 Easy

Number of Valid Subarrays

#1063 Hard

Smallest Subsequence of Distinct Characters

#1081 Medium

Brace Expansion II

#1096 Hard

Parsing A Boolean Expression

#1106 Hard

Maximum Nesting Depth of Two Valid Parentheses Strings

#1111 Medium

Longest Well-Performing Interval

#1124 Medium

Minimum Cost Tree From Leaf Values

#1130 Medium

Dinner Plate Stacks

#1172 Hard

Reverse Substrings Between Each Pair of Parentheses

#1190 Medium

Remove All Adjacent Duplicates in String II

#1209 Medium

Two Sum BSTs

#1214 Medium

Minimum Remove to Make Valid Parentheses

#1249 Medium

Print Immutable Linked List in Reverse

#1265 Medium

Design a Stack With Increment Operation

#1381 Medium

Build an Array With Stack Operations

#1441 Medium

Design Browser History

#1472 Medium

Final Prices With a Special Discount in a Shop

#1475 Easy

Count Submatrices With All Ones

#1504 Medium

Minimum Number of Increments on Subarrays to Form a Target Array

#1526 Hard

Minimum Insertions to Balance a Parentheses String

#1541 Medium

Make The String Great

#1544 Easy

Shortest Subarray to be Removed to Make Array Sorted

#1574 Medium

Binary Search Tree Iterator II

#1586 Medium

Build Binary Expression Tree From Infix Expression

#1597 Hard

Crawler Log Folder

#1598 Easy

Maximum Nesting Depth of the Parentheses

#1614 Easy

Design an Expression Tree With Evaluate Function

#1628 Medium

Minimum Deletions to Make String Balanced

#1653 Medium

Find the Most Competitive Subsequence

#1673 Medium

Number of Students Unable to Eat Lunch

#1700 Easy

Maximum Score From Removing Substrings

#1717 Medium

Design Most Recently Used Queue

#1756 Medium

Buildings With an Ocean View

#1762 Medium

Car Fleet II

#1776 Hard

Maximum Score of a Good Subarray

#1793 Hard

Maximum Subarray Min-Product

#1856 Medium

Minimum Cost to Change the Final Value of Expression

#1896 Hard

Remove All Occurrences of a Substring

#1910 Medium

Number of Visible People in a Queue

#1944 Hard

Maximum of Minimum Values in All Subarrays

#1950 Medium

Minimum Number of Swaps to Make the String Balanced

#1963 Medium

The Number of Weak Characters in the Game

#1996 Medium

Reverse Prefix of Word

#2000 Easy

The Score of Students Solving Math Expression

#2019 Hard

Smallest K-Length Subsequence With Occurrences of a Letter

#2030 Hard

Sum of Subarray Ranges

#2104 Medium

Check if a Parentheses String Can Be Valid

#2116 Medium

Maximum Twin Sum of a Linked List

#2130 Medium

Replace Non-Coprime Numbers in Array

#2197 Hard

Count Collisions on a Road

#2211 Medium

Minimum Deletions to Make Array Beautiful

#2216 Medium

Design Video Sharing Platform

#2254 Hard

Sum of Total Strength of Wizards

#2281 Hard

Number of People That Can Be Seen in a Grid

#2282 Medium

Steps to Make Array Non-decreasing

#2289 Medium

Design a Text Editor

#2296 Hard

Jump Game VIII

#2297 Medium

Subarray With Elements Greater Than Varying Threshold

#2334 Hard

Finding the Number of Visible Mountains

#2345 Medium

Maximum Number of Books You Can Take

#2355 Hard

Construct Smallest Number From DI String

#2375 Medium

Removing Stars From a String

#2390 Medium

Using a Robot to Print the Lexicographically Smallest String

#2434 Medium

Remove Nodes From Linked List

#2487 Medium

Maximum Frequency Score of a Subarray

#2524 Hard

Minimum Additions to Make Valid String

#2645 Medium

Minimum String Length After Removing Substrings

#2696 Easy

Robot Collisions

#2751 Hard

Is Array a Preorder of Some ‌Binary Tree

#2764 Medium

Double a Number Represented as a Linked List

#2816 Medium

Apply Operations to Maximize Score

#2818 Hard

Maximal Range That Each Element Is Maximum in It

#2832 Medium

Maximum Length of Semi-Decreasing Subarrays

#2863 Medium

Beautiful Towers I

#2865 Medium

Lexicographically Minimum String After Removing Stars

#3170 Medium

Clear Digits

#3174 Easy

Maximum Array Hopping Score I

#3205 Medium

Maximum Array Hopping Score II

#3221 Medium

Find Sorted Submatrices With Maximum Element at Most K

#3359 Hard
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.