## Sum over Subsets | Dynamic Programming

Prerequisite: Basic Dynamic Programming, Bitmasks Consider the following problem where we will use Sum over subset Dynamic Programming to solve it. Given an array of… Read More »

Featured Article

Prerequisite: Basic Dynamic Programming, Bitmasks Consider the following problem where we will use Sum over subset Dynamic Programming to solve it. Given an array of… Read More »

Featured Article

Given a few terms of a sequence, we are often asked to find the expression for the nth term of this sequence. While there is… Read More »

Featured Article

Double hashing is a collision resolving technique in Open Addressed Hash tables. Double hashing uses the idea of applying a second hash function to key… Read More »

Heap Overflow: Heap is a region of process’s memory which is used to store dynamic variables. These variables are allocated using malloc() and calloc() functions… Read More »

Given a binary tree, find the length of the longest path where each node in the path has the same value. This path may or… Read More »

In C++ vectors, we can access last element using size of vector using following ways. 1) Using size() Output : 50 100 1) Using back()… Read More »

Given n and q, i.e, the number of ranges and number of queries, find the kth smallest element for each query (assume k>1).Print the value… Read More »

Jio is having one of the most robust and fast pace interview process. Jio came to our campus for the position Of Graduate Engineer trainee… Read More »

The syntax provided in this article works only for SQL Server and MySQL. If you want to know how many tables are present in your… Read More »

We have learned about decision making in JavaScript using if-else statements in our previous article on if-else statement in JavaScript. We have seen in our… Read More »

This was a drive for SDE-1 and SDE-2 . HackerRank Round: This was an one hour test with two questions on hackerrank platform Given a… Read More »

Given a string str of size n. The problem is to sort the given string without using any sorting techniques (like bubble, selection, etc). The… Read More »

Datatypes in JavaScript There are majorly two types of languages. First, one is Statically typed language where each variable and expression type is already known… Read More »

Decision Making in programming is similar to decision making in real life. In programming also we face some situations where we want a certain block… Read More »

Given a list of strings, find the largest string among all. Largest string is the string with largest number of unique characters. Example : Input… Read More »

Given an array of n integers and a number m, find the maximum possible difference between two sets of m elements chosen from given array.… Read More »

Given a string, we have to find the longest word in the input string and then calculate the number of characters in this word. Examples:… Read More »