[Geeks for Geeks] Perfect Sum Problem

Perfect Sum Problem

Given an array arr[] of non-negative integers and an integer sum, the task is to count all subsets of the given array with a sum equal to a given sum.

Read more
[Geeks for Geeks] Partition Equal Subset Sum

Partition Equal Subset Sum

Given an array arr[] of size N, check if it can be partitioned into two parts such that the sum of elements in both parts is the same.

Read more
[Geeks for Geeks] Subset Sum Problem

Subset Sum Problem

Given an array of non-negative integers, and a value sum, determine if there is a subset of the given set with sum equal to given sum.

Read more
[Geeks for Geeks] Longest Path in a matrix

Longest Path in a matrix

Given a n*m matrix, find the maximum length path (starting from any cell) such that all cells along the path are in strictly increasing order.

We can move in 4 directions from a given cell (i, j), i.e., we can move to (i+1, j) or (i, j+1) or (i-1, j) or (i, j-1).

Read more
[Geeks for Geeks] Count number of hops

Count number of hops

A frog jumps either 1, 2, or 3 steps to go to the top. In how many ways can it reach the top. As the answer will be large find the answer modulo 1000000007.

Read more
[Geeks for Geeks] Minimum sum partition

Minimum sum partition

Given an integer array arr of size N, the task is to divide it into two sets S1 and S2 such that the absolute difference between their sums is minimum and find the minimum difference

Read more
[Geeks for Geeks] Edit Distance

Edit Distance

Given two strings s and t. Return the minimum number of operations required to convert s to t.
The possible operations are permitted:

  1. Insert a character at any position of the string.
  2. Remove any character from the string.
  3. Replace any character from the string with any other character.
Read more
[Geeks for Geeks] Longest Increasing Subsequence

Longest Increasing Subsequence

Given an array of integers, find the length of the longest (strictly) increasing subsequence from the given array.

Read more
[Geeks for Geeks] Longest Common Substring

Longest Common Substring

Given two strings. The task is to find the length of the longest common substring.

Read more
[Geeks for Geeks] Longest Common Subsequence

Longest Common Subsequence

Given two sequences, find the length of longest subsequence present in both of them. Both the strings are of uppercase.

Read more