## Sum of the first N Prime numbers

Given an integer ‘n’, the task is to find the sum of first ‘n’ prime numbers. First few prime numbers are: 2, 3, 5, 7,… Read More »

- How can one become good at Data structures and Algorithms easily?
- Make all numbers of an array equal
- Reach the numbers by making jumps of two given lengths
- Some useful C++ tricks for beginners in Competitive Programming
- Check if a number is perfect square without finding square root
- Sum of XOR of all subarrays
- Sort the array of strings according to alphabetical order defined by another string
- Make Binary Search Tree
- Check if it is possible to reach a number by making jumps of two given length
- Sum of similarities of string with all of its suffixes
- Smallest Pair Sum in an array
- Find the number in a range having maximum product of the digits
- Maximum of all Subarrays of size k using set in C++ STL
- Print matrix in snake pattern from the last column
- Count distinct substrings that contain some characters at most k times
- Number of array elements derivable from D after performing certain operations
- Count common characters in two strings
- Operations required to make the string empty
- Program to find the kth character after decrypting a string
- Color N boxes using M colors such that K boxes have different color from the box on its left
- Minimum number of sets with numbers less than Y
- Find two numbers whose divisors are given in a random order
- Given two arrays count all pairs whose sum is an odd number
- Number of subarrays have bitwise OR >= K
- Use of FLAG in programming
- Sum of the multiples of two numbers below N
- Merge K sorted arrays of different sizes | ( Divide and Conquer Approach )
- Sum of bitwise AND of all subarrays
- Interactive Problems in Competitive Programming
- Maximum length substring with highest frequency in a string

Given an integer ‘n’, the task is to find the sum of first ‘n’ prime numbers. First few prime numbers are: 2, 3, 5, 7,… Read More »

Given a string which consists of either ‘.’ or any number. A ‘.’ in the string means that the cell is empty and if there… Read More »

Given the value ‘N’ which is length of a number ‘A’. Your task is to convert the digits such that at least ‘K’ times in… Read More »

Given an array of size N and a sum, the task is to check whether some array elements can be added to sum to N… Read More »

Given a set Sn that represents a finite set {1, 2, 3, ….., n}. Zn denotes the set of all subsets of Sn which contains… Read More »

Given two sequences of N integers consisting of both positive and negative integers inclusive 0 (sequence A and sequence B). Then there will be Q… Read More »

Given a point (x, y). Find whether it is possible or not to move from (0, 0) to (x, y) in exactly n steps. 4… Read More »

Given a range [L, R]. The task is to find the product of all the prime numbers in the given range from L to R… Read More »

Given an array and a Number N. The task is to check whether there exists any subset of this array such that the bitwise AND… Read More »

Pre-requisites: Segment Tree Given an array of digits arr[]. Given a number of range [L, R] and a digit X with each range. The task… Read More »

Given an array of size N, the task is to determine whether its possible to sort the array or not by just one shuffle. In… Read More »

Given a list of items and their values. The task is to find top k items with the highest value. It is possible that two… Read More »

Given two points i.e. (a, 0) to (b, 0). The task is to check whether it is possible to move from (a,0) to (b,0) or… Read More »

Given two numbers A, B. The task is to find the numbers of special pairs of A, B. A special pair of two numbers A,… Read More »

Given an array arr[]. The task is to find the length of the longest subarray of arr[] such that it contains only even elements. Examples:… Read More »