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

LeetCode 1784. Check if Binary String Has at Most One Segment of Ones

Description https://leetcode.com/problems/check-if-binary-string-has-at-most-one-segment-of-ones/ Given a binary string s ​​​​​without leading zeros, return true​​​ if s contains at most one contiguous segment of ones. Otherwise, return false. Example 1: Input:…

Continue Reading
  • Posted on May 5, 2021May 5, 2021
  • LeetCode

LeetCode 1758. Minimum Changes To Make Alternating Binary String

Description https://leetcode.com/problems/minimum-changes-to-make-alternating-binary-string/ You are given a string s consisting only of the characters ‘0’ and ‘1’. In one operation, you can change any ‘0’ to ‘1’ or vice versa.…

Continue Reading
  • Posted on May 5, 2021May 5, 2021
  • LeetCode

LeetCode 1790. Check if One String Swap Can Make Strings Equal

Description https://leetcode.com/problems/check-if-one-string-swap-can-make-strings-equal/ You are given two strings s1 and s2 of equal length. A string swap is an operation where you choose two indices in a…

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

LeetCode 1844. Replace All Digits with Characters

Description https://leetcode.com/problems/replace-all-digits-with-characters/ You are given a 0-indexed string s that has lowercase English letters in its even indices and digits in its odd indices. There is a function shift(c,…

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

LeetCode 520. Detect Capital

Description https://leetcode.com/problems/detect-capital/ We define the usage of capitals in a word to be right when one of the following cases…

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

LeetCode 290. Word Pattern

Description https://leetcode.com/problems/word-pattern/ Given a pattern and a string s, find if s follows the same pattern. Here follow means a full match, such that there is a…

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

LeetCode 925. Long Pressed Name

Description https://leetcode.com/problems/long-pressed-name/ Your friend is typing his name into a keyboard. Sometimes, when typing a character c, the key might get long pressed, and…

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

LeetCode 806. Number of Lines To Write String

Description https://leetcode.com/problems/number-of-lines-to-write-string/ You are given a string s of lowercase English letters and an array widths denoting how many pixels wide each lowercase English letter is.…

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

LeetCode 1592. Rearrange Spaces Between Words

Description https://leetcode.com/problems/rearrange-spaces-between-words/ You are given a string text of words that are placed among some number of spaces. Each word consists of…

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

LeetCode 917. Reverse Only Letters

Description https://leetcode.com/problems/reverse-only-letters/ Given a string S, return the “reversed” string where all characters that are not a letter stay in the same…

Continue Reading

Posts navigation

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