gfg-potd

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 […]

Majority Element II

gfg-potd

You are given an array of integer arr[] where each number represents a vote to a candidate. Return the candidates that have

Next Permutation

gfg-potd

Given an array of integers arr[] representing a permutation, implement the next permutation that rearranges the numbers into the lexicographically next greater permutation. If

Rotate Array

gfg-potd

Given an unsorted array arr[]. Rotate the array to the left (counter-clockwise direction) byd steps, where d is a positive integer. Do the mentioned change in

Minimum sum

gfg-potd

Given an array arr[] such that each element is in the range [0 – 9], find the minimum possible sum of two

Rotate by 90 degree

gfg-potd

Given asquare matrix[][]. The task is to rotate it by 90 degrees in clockwise direction without using any extra space. Examples: Input: mat[][]

Scroll to Top