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.

567. Permutation in String

leetcode-potd

Given two strings s1 and s2, return true if s2 contains a  permutation of s1, or false otherwise. In other words, return true if one of s1‘s permutations is the substring of s2. Example 1:

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

1590. Make Sum Divisible by P

leetcode-potd

Given an array of positive integers nums, remove the smallest subarray (possibly empty) such that the sum of the remaining elements is divisible by p. It is not allowed

Scroll to Top