Getting wrong answer . Solution is at https://ide.codingblocks.com/s/193958
Wrong answer for the digitdp problem
Hi @sohampatil_sp , ur logic seems fine u need to optimize your code further as u r getting TLE .
u can refer this code : https://ide.codingblocks.com/s/194230 ,for reference
In case of any doubt feel free to ask 
If u got the answer mark the doubt as resolved
1 Like