Loading Company...
This is a verified interview question from Nk-securities-iitb. Candidates reporting seeing this problem in recent Online Assessments (OAs) and onsite rounds. Mastering "Power Change Ways - NK Securities IITB" covers key patterns like DP.
"### Problem We start with initial power 1. Given an array in which at each index we can make our power as curr*power[i] or curr/power[i] or do both the operations resulting in no change or skip it. Given a target array. We need to return a vector where for each target [i] we calculate the number of ways to reach that target. Return with Mod 1e9+7"
Join thousands of developers practicing for Nk-securities-iitb.