## How can one become good at Data structures and Algorithms easily?

Designed by Freepik Let us first clarify the question. There is not any easy way to become good at anything but there is an efficient… Read More »

- Practice for cracking any coding interview
- How to get rid of Java TLE problem
- Burst Balloon to maximize coins
- Subset array sum by generating all the subsets
- Understanding The Coin Change Problem With Dynamic Programming
- Length of the longest Subarray with only Even Elements
- Maximize the total profit of all the persons
- Largest connected component on a grid
- Number of quadrilaterals possible from the given points
- Minimum number of increasing subsequences
- Find triplets in an array whose AND is maximum
- Minimum cost to buy N kilograms of sweet for M persons
- Check if any permutation of a large number is divisible by 8
- Kth Smallest sum of continuous subarrays of positive numbers
- Introduction to Programming Languages
- Find three integers less than or equal to N such that their LCM is maximum
- Sum of similarities of string with all of its suffixes
- Number of values of b such that a = b + (a^b)
- Minimum increment operations to make the array in increasing order
- Minimum cost path from source node to destination node via an intermediate node
- Length of largest sub-array having primes strictly greater than non-primes
- Number of distinct prime factors of first n natural numbers
- Nth non-Square number
- Number of elements greater than K in the range L to R using Fenwick Tree (Offline queries)
- Check if it is possible to move from (0, 0) to (x, y) in N steps
- Check if it is possible to sort the array after rotating it
- Largest factor of a given number which is a perfect square
- Minimum changes required to make two arrays identical
- Number of special pairs possible from the given two numbers
- Minimum sum of the elements of an array after subtracting smaller elements from larger

Designed by Freepik Let us first clarify the question. There is not any easy way to become good at anything but there is an efficient… Read More »

Given two arrays of size N and two integers X and Y indicating the maximum number of elements one can pick from array A and… Read More »

Given an integer N and an array arr containing integers from 1 to N in sorted fashion. The task is to reduce the array to… Read More »

Given an array of integers. The task is to find the maximum sum of all the elements of the array after performing the given two… Read More »

Given two integers A and B, the task is to find the minimum positive integer N such that N is divisible by A and the… Read More »

Given an array A of N integers and number of queries Q. You have to answer two types of queries. Update [l, r] – for… Read More »

Given a N-ary tree, the task is to print the level with the maximum number of nodes. Examples: Input : For example, consider the following… Read More »

Given a string S of length N consisting of lowercase English letters and an integer K. Find the lexicographically smallest string T of length K,… Read More »

Given some weights of masses a0, a1, a2, …, a100, a being an integer, and a weighing scale where weights can be put on both… Read More »

Given a K-ary tree, where each node is having K children and each edge has some weight. All the edges i.e. K, that goes from… Read More »

Given X and Y coordinates of N points on a Cartesian plane. The task is to find the number of possible triangles with the non-zero… Read More »

Given three integers A, B and X. The task is to construct a binary string str which has exactly A number of 0’s and B… Read More »

Given an array of distinct integers arr[], the task is to find a pair which has the minimum sum and print the sum. Examples: Input:… Read More »

Given a string str, the task is to check whether every group of consecutive a’s is followed by a group of consecutive b’s of same… Read More »

Given a string str, the task is to find the sum of the similarities of str with each of its suffixes. The similarity of strings… Read More »