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: String

  • Posted on September 28, 2021October 1, 2021
  • LeetCode

LeetCode 76. Minimum Window Substring

Description https://leetcode.com/problems/minimum-window-substring/ Given two strings s and t of lengths m and n respectively, return the minimum window substring of s such that every character in t (including duplicates) is included in the window. If…

Continue Reading
  • Posted on September 27, 2021September 27, 2021
  • LeetCode

LeetCode 1047. Remove All Adjacent Duplicates In String

Description https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string/ You are given a string s consisting of lowercase English letters. A duplicate removal consists of choosing two adjacent and equal letters and removing them. We…

Continue Reading
  • Posted on September 11, 2021September 12, 2021
  • LeetCode

LeetCode 10. Regular Expression Matching

Description https://leetcode.com/problems/regular-expression-matching/ Given an input string s and a pattern p, implement regular expression matching with support for ‘.’ and ‘*’ where: ‘.’ Matches any single character.​​​​ ‘*’ Matches…

Continue Reading
  • Posted on September 2, 2021September 2, 2021
  • LeetCode

LeetCode 800. Similar RGB Color

Description https://leetcode.com/problems/similar-rgb-color/ The red-green-blue color “#AABBCC” can be written as “#ABC” in shorthand. For example, “#15c” is shorthand for the color “#1155cc”. The similarity between the two…

Continue Reading
  • Posted on September 2, 2021September 2, 2021
  • LeetCode

LeetCode 293. Flip Game

Description https://leetcode.com/problems/flip-game/ You are playing a Flip Game with your friend. You are given a string currentState that contains only ‘+’ and ‘-‘. You and…

Continue Reading
  • Posted on August 25, 2021August 25, 2021
  • LeetCode

LeetCode 567. Permutation in String

Description https://leetcode.com/problems/permutation-in-string/ Given two strings s1 and s2, return true if s2 contains a permutation of s1, or false otherwise. In other words, return true if one of s1‘s permutations is the substring…

Continue Reading
  • Posted on August 23, 2021August 23, 2021
  • LeetCode

LeetCode 301. Remove Invalid Parentheses

Description https://leetcode.com/problems/remove-invalid-parentheses/ Given a string s that contains parentheses and letters, remove the minimum number of invalid parentheses to make the input…

Continue Reading
  • Posted on August 21, 2021August 21, 2021
  • LeetCode

LeetCode 157. Read N Characters Given Read4

Description https://leetcode.com/problems/read-n-characters-given-read4/ Given a file and assume that you can only read the file using a given method read4, implement a method to…

Continue Reading
  • Posted on August 21, 2021August 21, 2021
  • LeetCode

LeetCode 438. Find All Anagrams in a String

Description https://leetcode.com/problems/find-all-anagrams-in-a-string/ Given two strings s and p, return an array of all the start indices of p‘s anagrams in s. You may return the answer…

Continue Reading
  • Posted on August 19, 2021October 7, 2021
  • LeetCode

LeetCode 340. Longest Substring with At Most K Distinct Characters

Description https://leetcode.com/problems/longest-substring-with-at-most-k-distinct-characters/ Given a string s and an integer k, return the length of the longest substring of s that contains at most k distinct characters. Example 1: Input:…

Continue Reading

Posts navigation

Page 1 Page 2 … Page 10 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