Top Down not giving right answers

I completed the problem with bottom up approach. But when I tried the same with Top Down, I got 4 test cases wrong. Could you please check whats wrong in my approach.

hello @rohan.nishant1999
please share ur code using cb ide

Sir, how to share the code? I forgot the method.

go to this link -> https://ide.codingblocks.com/
paste ur code
click on file option (present on top )
there u will get save option.
press on save .
a link will be generated in ur search bar.
copy that link and share it with me

@rohan.nishant1999
ur code is correct,
it is showing error only in cb server,on other platform it is working fine->

image

probably some issue is there with cb checker

1 Like

Ohk. Thanks a lot sir. :slightly_smiling_face: