GoodTecher

Be a Good Techer and Tech for Good. www.goodtecher.com

Skip to content
Menu
  • Home
  • LeetCode
    • Array
    • Binary Search
    • Binary Tree
    • Depth First Search
    • Design
    • Dynamic Programming
    • Linked List
    • Math
    • Stack
    • String
    • Two Pointers
    • Union Find
  • Useful

Category: Stack

  • Posted on May 21, 2021May 21, 2021
  • LeetCode

LeetCode 1381. Design a Stack With Increment Operation

Description https://leetcode.com/problems/design-a-stack-with-increment-operation/ Design a stack which supports the following operations. Implement the CustomStack class: CustomStack(int maxSize) Initializes the object with maxSize which is the maximum…

Continue Reading
  • Posted on April 28, 2021April 28, 2021
  • LeetCode

LeetCode 1614. Maximum Nesting Depth of the Parentheses

Description https://leetcode.com/problems/maximum-nesting-depth-of-the-parentheses/ A string is a valid parentheses string (denoted VPS) if it meets one of the following: It is an empty string “”,…

Continue Reading
  • Posted on February 4, 2021February 4, 2021
  • LeetCode

LeetCode 232. Implement Queue using Stacks

Description https://leetcode.com/problems/implement-queue-using-stacks/ Implement a first in first out (FIFO) queue using only two stacks. The implemented queue should support all…

Continue Reading
  • Posted on February 4, 2021February 4, 2021
  • LeetCode

LeetCode 225. Implement Stack using Queues

Description https://leetcode.com/problems/implement-queue-using-stacks/ Implement a last in first out (LIFO) stack using only two queues. The implemented stack should support all…

Continue Reading
  • Posted on September 21, 2020February 1, 2021
  • LeetCode

LeetCode 895. Maximum Frequency Stack

Description https://leetcode.com/problems/maximum-frequency-stack/ Implement FreqStack, a class which simulates the operation of a stack-like data structure. FreqStack has two functions: push(int x), which…

Continue Reading
  • Posted on April 17, 2020April 17, 2020
  • LeetCode

LeetCode 678. Valid Parenthesis String

Description https://leetcode.com/problems/valid-parenthesis-string/ Given a string containing only three types of characters: ‘(‘, ‘)’ and ‘*’, write a function to check…

Continue Reading
  • Posted on April 10, 2020September 30, 2020
  • Array

LeetCode 268. Missing Number

Description https://leetcode.com/problems/missing-number/ Given an array containing n distinct numbers taken from 0, 1, 2, …, n, find the one that is missing from…

Continue Reading
  • Posted on April 10, 2020September 22, 2021
  • LeetCode

LeetCode 844. Backspace String Compare

Description https://leetcode.com/problems/backspace-string-compare/ Given two strings S and T, return if they are equal when both are typed into empty text editors. # means a backspace character. Example…

Continue Reading
  • Posted on August 18, 2018August 17, 2021
  • LeetCode

LeetCode 84. Largest Rectangle in Histogram

Description https://leetcode.com/problems/largest-rectangle-in-histogram/ Given an array of integers heights representing the histogram’s bar height where the width of each bar is 1, return the area…

Continue Reading
  • Posted on November 11, 2017January 11, 2021
  • LeetCode

LeetCode 155. Min Stack

Description Design a stack that supports push, pop, top, and retrieving the minimum element in constant time. push(x) — Push…

Continue Reading

Posts navigation

Page 1 Page 2 Next Page

Follow GoodTecher

Categories

  • HackerRank (1)
  • Interview (7)
  • LeetCode (588)
    • Array (185)
    • Backtracking (18)
    • Binary Search (19)
    • Binary Tree (63)
    • Bit Manipulation (15)
    • Database (40)
    • Depth First Search (6)
    • Design (10)
    • Dynamic Programming (17)
    • Graph (18)
    • Greedy (5)
    • Heap (1)
    • Linked List (26)
    • Math (36)
    • Recursion (3)
    • Sorting (11)
    • Stack (11)
    • String (95)
    • Two Pointers (12)
    • Union Find (2)
  • Machine Learning (7)
  • Technical Solutions (2)
  • Useful (3)
© Copyright 2025 – GoodTecher
Cell Theme by DesignOrbital ⋅ Powered by WordPress