Author name: Admin

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

Scroll to Top