what’s wrong with the code?https://ide.codingblocks.com/s/170775
Piyush and Magical Park
Hello @i_am_dekard_shaw
At the end when printing the answer, you need to check if(s < k)
if flag is 1 or s is less than k then print No else print yes.
Here is the modified code
Let me know if you still need any help.
1 Like