Equilibrium Point

gfg-potd

Given an array of integers arr[],the task is to find the first equilibrium point in the array. The equilibrium point in an array […]

Container With Most Water

gfg-potd

Given an array arr[] of non-negative integers, where each element arr[i] represents the height of the vertical lines, find the maximum amount of water that can be contained between

Trapping Rain Water

gfg-potd

Given an array arr[] with non-negative integers representing the height of blocks. If the width of each block is 1, compute how

Indexes of Subarray Sum

gfg-potd

Given an array arr[] containing only non-negative integers, your task is to find a continuous subarray (a contiguous sequence of elements) whose

3042. Count Prefix and Suffix Pairs I

leetcode-potd

You are given a 0-indexed string array words. Let’s define a boolean function isPrefixAndSuffix that takes two strings, str1 and str2: isPrefixAndSuffix(str1, str2) returns true if str1 is both a prefix and a suffix of of str2, and false otherwise. For

Scroll to Top