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 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 October 15, 2020October 15, 2020
  • LeetCode

LeetCode 394. Decode String

Description https://leetcode.com/problems/decode-string/ Given an encoded string, return its decoded string. The encoding rule is: k[encoded_string], where the encoded_string inside the square brackets is…

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, 2020April 10, 2020
  • 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 18, 2018
  • LeetCode

LeetCode 84. Largest Rectangle in Histogram

Description https://leetcode.com/problems/largest-rectangle-in-histogram/description/ Given n non-negative integers representing the histogram’s bar height where the width of each bar is 1, find 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
  • Posted on March 1, 2017January 12, 2021
  • LeetCode

LeetCode 20. Valid Parentheses

Description https://leetcode.com/problems/valid-parentheses/ Given a string s containing just the characters ‘(‘, ‘)’, ‘{‘, ‘}’, ‘[‘ and ‘]’, determine if the input string is valid. An input string is valid…

Continue Reading

Follow GoodTecher

Categories

  • HackerRank (1)
  • Interview (5)
  • LeetCode (267)
    • Array (71)
    • Backtracking (10)
    • Binary Search (12)
    • Binary Tree (25)
    • Bit Manipulation (5)
    • Database (18)
    • Depth First Search (6)
    • Design (4)
    • Dynamic Programming (13)
    • Graph (3)
    • Linked List (15)
    • Math (22)
    • Recursion (1)
    • Sorting (7)
    • Stack (10)
    • String (34)
    • Two Pointers (12)
    • Union Find (2)
  • Machine Learning (7)
  • Technical Solutions (2)
  • Useful (3)
© Copyright 2021 – GoodTecher
Cell Theme by DesignOrbital ⋅ Powered by WordPress