Majority Vote

gfg-potd

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

Rotate and delete

gfg-potd

Given an array arr integers. Assume sz to be the initial size of the array. Do the following operations exactly sz/2 times. In every kth (1<= k <=

Total count

gfg-potd

You are given an array arr[] of positive integers and a threshold value k. For each element in the array, divide it into

641. Design Circular Deque

leetcode-potd

Design your implementation of the circular double-ended queue (deque). Implement the MyCircularDeque class: MyCircularDeque(int k) Initializes the deque with a maximum size of k.

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,

Scroll to Top