leetcode-potd

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

1462. Course Schedule IV

leetcode-potd

There are a total of numCourses courses you have to take, labeled from 0 to numCourses – 1. You are given an array prerequisites where prerequisites[i] = [ai,

Scroll to Top