Class assignment backtracking

This works fine for sample input but doesnt work for any test cases. i think my logic is right.

output has #t th value not the value we input
so it ll be 1 2 3 till t
cout<<"#"<<i<<" : "<<res<<endl;
if thi solves your doubt please mark it as resolved :slight_smile:

1 Like