given a range [low,high] (both inclusive) , select k number from range (a number can be chosen multiple times ) such that sum those k numbers is even calculate the number of all such permutations As this number can be large print it modulo (1e9 +7)
Answers
Answered by
1
Basic concept of pnc will work for it.This is my solution on online editor.
Attachments:
Similar questions