gfg-potd

Minimal Cost

gfg-potd

There is an array arr of heights of stone and Geek is standing at the first stone and can jump to one […]

K Sized Subarray Maximum

gfg-potd

Given an array arr[] and an integer k. Find the maximum for each and every contiguous subarray of size k. Examples: Input: k = 3,

Roof Top

gfg-potd

You are given the heights of consecutive buildings. You can move from the roof of a building to the roof

Missing And Repeating

gfg-potd

Given an unsorted array arr of of positive integers. One number ‘A‘ from set {1, 2,….,n} is missing and one number ‘B‘

Facing the sun

gfg-potd

Given an array height representing the heights of buildings. You have to count the buildings that will see the sunrise (Assume the

Reverse Words

gfg-potd

Given a String str, reverse the string without reversing its individual words. Words are separated by dots. Note: The last character

Parenthesis Checker

gfg-potd

Given an expression string x. Examine whether the pairs and the orders of {,},(,),[,] are correct in exp.For example, the function

Minimize The Heights II

gfg-potd

Given an array arr[] denoting heights of N towers and a positive integer K. For each tower, you must perform exactly one of the following operations exactly once. Increase the height

Longest Valid Parentheses

gfg-potd

Given a string str consisting of opening and closing parenthesis ‘(‘ and ‘)‘. Find length of the longest valid parenthesis substring. A

Scroll to Top