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

K Sum Paths

gfg-potd

Given a binary tree and an integer k, determine the number of downward-only paths where the sum of the node values in the path equals k.

Word Search

gfg-potd

You are given a two-dimensional mat[][] of size n*m containing English alphabets and a string word. Check if the word exists on the mat. The word

Implement Pow

gfg-potd

Implement the function power(b, e), which calculates b raised to the power of e (i.e. be). Examples: Input: b = 3.00000, e = 5Output: 243.00000

Scroll to Top