leetcode-potd

2375. Construct Smallest Number From DI String

leetcode-potd

You are given a 0-indexed string pattern of length n consisting of the characters ‘I’ meaning increasing and ‘D’ meaning decreasing. A 0-indexed string num of length n + 1 is created using the following conditions: num consists of the

1910. Remove All Occurrences of a Substring

leetcode-potd

Given two strings s and part, perform the following operation on s until all occurrences of the substring part are removed: Find the leftmost occurrence of the substring part and remove it from s. Return s after removing

3174. Clear Digits

leetcode-potd

You are given a string s. Your task is to remove all digits by doing this operation repeatedly: Delete the first digit and the closest non-digit character to

Scroll to Top