https://ide.codingblocks.com/s/240741…plz help what am I missing
Output is correct but test case are not passing
hello @dhirenkinha
a) value of n can be upto 10^9 and we cannot use array of that big size becuase this will consume too much memory.
solution -> use top down approach and map in place of array.
1 Like
if n is not divisible by 2,3,4 then take take its floor value.
also remove this loop.
because map contain 0 as default value.
1 Like
https://ide.codingblocks.com/s/241010… sir I did it but still it is showing wrong answer … plz help asap
pls check this
1 Like
