[Geeks for Geeks] Word Break

Word Break

Given a string A and a dictionary of n words B, find out if A can be segmented into a space-separated sequence of dictionary words.

Note: From the dictionary B each word can be taken any number of times and in any order.

Read more
[Geeks for Geeks] Form a palindrome

Form a palindrome

Given a string, find the minimum number of characters to be inserted to convert it to palindrome.

For Example:

  • ab: Number of insertions required is 1. bab or aba
  • aa: Number of insertions required is 0. aa
  • abcd: Number of insertions required is 3. dcbabcd
Read more
[Geeks for Geeks] Find All Four Sum Numbers

Find All Four Sum Numbers

Given an array of integers and another number. Find all the unique quadruple from the given array that sums up to the given number.

Read more
[AlgoExpert] Kadane`s AlgorithmRead more
[AlgoExpert] Single Cycle SearchRead more
[AlgoExpert] Breadth First SearchRead more
[AlgoExpert] Youngest Common AncestorRead more
[AlgoExpert] Remove IslandsRead more
[AlgoExpert] Cycle In GraphRead more
[AlgoExpert] Minimum Passes Of MatrixRead more