Posts

Find minimum number of coins that make a given value when use one coin many times

Find minimum number of coins that make a given value when use one coin many times by recursion

Find minimum number of coins that make a given value when use one coin only one by DP

Find minimum number of coins that make a given value when use one coin only one by recursion

String Hashing

Inversion Count by BIT

Inversion Count by BIT

Binary Indexed Tree or Fenwick Tree

Given a array and given a range[l, r], determine the number of elements in the array greater than equal to l and less than equal to r

Print all Combination by Backtracking

Print all Combination by Backtracking

Print all Permutation by Backtracking

Recursion Problem Solve