Not a Subset Sum
Given a sorted array arr[] of positive integers, find the smallest positive integer such that it cannot be represented as the sum […]
Given a sorted array arr[] of positive integers, find the smallest positive integer such that it cannot be represented as the sum […]
You are given a positive integer array skill of even length n where skill[i] denotes the skill of the ith player. Divide the players into n / 2 teams of size 2 such that
Given a Circular Linked List. The task is to delete the given node, key in the circular linked list, and reverse the
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
You are given an array of integer nums[] where each number represents a vote to a candidate. Return the candidates that have
Given an array of integers arr, replace each element with its rank. The rank represents how large the element is. The
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 <=
Given an array of integers arr of even length n and an integer k. We want to divide the array into exactly n / 2 pairs such
Given elements as nodes of the two singly linked lists. The task is to multiply these two linked lists, say
Design a stack that supports increment operations on its elements. Implement the CustomStack class: CustomStack(int maxSize) Initializes the object with maxSize which is the maximum
Design a data structure to store the strings’ count with the ability to return the strings with minimum and maximum
You are given an array arr[] of positive integers and a threshold value k. For each element in the array, divide it into