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 August 15, 2021August 15, 2021
  • LeetCode

LeetCode 161. One Edit Distance

Description https://leetcode.com/problems/one-edit-distance/ Given two strings s and t, return true if they are both one edit distance apart, otherwise return false. A string s is said to be…

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

LeetCode 1016. Binary String With Substrings Representing 1 To N

Description https://leetcode.com/problems/binary-string-with-substrings-representing-1-to-n/ Given a binary string s (a string consisting only of ‘0’ and ‘1’s) and a positive integer n, return true if…

Continue Reading
  • Posted on July 19, 2021July 19, 2021
  • LeetCode

LeetCode 859. Buddy Strings

Description https://leetcode.com/problems/find-k-length-substrings-with-no-repeated-characters/ Given two strings s and goal, return true if you can swap two letters in s so the result is equal to goal, otherwise, return false. Swapping…

Continue Reading
  • Posted on July 19, 2021July 19, 2021
  • LeetCode

LeetCode 1100. Find K-Length Substrings With No Repeated Characters

Description https://leetcode.com/problems/find-k-length-substrings-with-no-repeated-characters/ Given a string s, return the number of substrings of length k with no repeated characters. Example 1: Input: s =…

Continue Reading
  • Posted on June 29, 2021June 29, 2021
  • LeetCode

LeetCode 1180. Count Substrings with Only One Distinct Letter

Description https://leetcode.com/problems/count-substrings-with-only-one-distinct-letter/ Given a string s, return the number of substrings that have only one distinct letter. Example 1: Input: s = “aaaba” Output:…

Continue Reading
  • Posted on June 20, 2021June 20, 2021
  • LeetCode

LeetCode 1903. Largest Odd Number in String

Description https://leetcode.com/problems/largest-odd-number-in-string/ You are given a string num, representing a large integer. Return the largest-valued odd integer (as a string) that is a non-empty substring of num,…

Continue Reading
  • Posted on June 13, 2021June 13, 2021
  • LeetCode

LeetCode 1624. Largest Substring Between Two Equal Characters

Description https://leetcode.com/problems/largest-substring-between-two-equal-characters/ Given a string s, return the length of the longest substring between two equal characters, excluding the two characters. If there…

Continue Reading
  • Posted on June 12, 2021June 12, 2021
  • LeetCode

LeetCode 409. Longest Palindrome

Description https://leetcode.com/problems/longest-palindrome/ Given a string s which consists of lowercase or uppercase letters, return the length of the longest palindrome that can be built with…

Continue Reading
  • Posted on June 10, 2021June 10, 2021
  • LeetCode

LeetCode 682. Baseball Game

Description https://leetcode.com/problems/baseball-game/ You are keeping score for a baseball game with strange rules. The game consists of several rounds, where…

Continue Reading
  • Posted on June 9, 2021June 9, 2021
  • LeetCode

LeetCode 1880. Check if Word Equals Summation of Two Words

Description https://leetcode.com/problems/check-if-word-equals-summation-of-two-words/ The letter value of a letter is its position in the alphabet starting from 0 (i.e. ‘a’ -> 0, ‘b’ -> 1, ‘c’ -> 2,…

Continue Reading

Posts navigation

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