Partial submission of CHEFPDIG

Problem statement-> https://www.codechef.com/SEPT17/problems/CHEFPDIG

my solution --> https://www.codechef.com/viewsolution/15283152

how can i edit my code so that i can pass constraints 1 ≤ N ≤ 10^100000

Your code is hard to understand. Simply check for the digits in the number and their frequency. Then starting from 65 to 90 check if both the two digits were there, frequency is required for numbers like 66, 77, 88 cause you need digit two times. Here is code if it helps Solution.
Upvote if find helpful!!

Editorial for this problem is well written it also discusses about how to handle very big N value, check it here. https://discuss.codechef.com/questions/108161/chefpdig-editorial

//