Wrong answer for the digitdp problem

Getting wrong answer . Solution is at https://ide.codingblocks.com/s/193958

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 :slight_smile:
If u got the answer mark the doubt as resolved

1 Like