gfg-potd

Reorganize The Array

gfg-potd

Given an array of elements arr[] with indices ranging from 0 to arr.size() – 1, your task is to write a program that rearranges the elements […]

Linked List Matrix

gfg-potd

Given a Matrix mat of n*n size. Your task is constructing a 2D linked list representation of the given matrix. Input: mat = [[1,

Largest Pair Sum

gfg-potd

Find the largest pair sum in an array of distinct integers. Examples : Input: arr[] = [12, 34, 10, 6, 40] Output:

XOR Linked List

gfg-potd

An ordinary Doubly Linked List requires space for two address fields to store the addresses of previous and next nodes.

Not a Subset Sum

gfg-potd

Given a sorted array arr[] of positive integers, find the smallest positive integer such that it cannot be represented as the sum

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

Scroll to Top