What is wrong in my code?

this is my answer for CNOTE Problem - CodeChef . Where does this code break? what are the edge cases

c[i] <= k (because it’s ok if u have more amount than required amount)
and one more thing i am unable to understand what is the purpose of s there .
If two conditions are satisfied u can break loop directly and print lucky chef and if loop doesn’t break print unlucky chef.

thanks @lost_boy12 found it :slight_smile:

1 Like