Ola Cabs Interview Experience for SDE-2
Round 1: Next permutation for a given stringDP problem, Given two strings A & B, Find how many times string B occurs as a subsequence in A. Example A = "aacb", B = "ab", ans = 2 because B occurs twice in A. Example A = "aabb", B = "ab", ans = 4 Round 2: Given 2 strings A & B. Find the smalle