2097. Valid Arrangement of Pairs

leetcode-potd

You are given a 0-indexed 2D integer array pairs where pairs[i] = [starti, endi]. An arrangement of pairs is valid if for every index i where 1 <= i < pairs.length, we […]

Anagram

gfg-potd

Given two strings s1 and s2 consisting of lowercase characters. The task is to check whether two given strings are an anagram of each

Add Binary Strings

gfg-potd

Given two binary strings s1 and s2 consisting of only 0s and 1s. Find the resultant string after adding the two Binary Strings.Note: The input

Implement Atoi

gfg-potd

Given a string s, the objective is to convert it into integer format without utilizing any built-in functions. Refer the

Max Circular Subarray Sum

gfg-potd

Given an array of integers arr[] in a circular fashion. Find the maximum subarray sum that we can get if we assume the array to be circular.

773. Sliding Puzzle

leetcode-potd

On an 2 x 3 board, there are five tiles labeled from 1 to 5, and an empty square represented by 0. A move consists of choosing 0 and a

Maximum Product Subarray

gfg-potd

Given an array arr[] that contains positive and negative integers (may contain 0 as well). Find the maximum product that we can get in

Scroll to Top