Failing 1st test case in sort game

code-https://ide.codingblocks.com/s/314385

failing 1st testcase

@S18LPC-OL0078 why have you hardcoded the value here? This should be compared with “x” that the user will provide
image

after changing that it is still failing test case 1

@S18LPC-OL0078 share the updated code.

https://ide.codingblocks.com/s/314385 - updated code

@S18LPC-OL0078 make it it->second >= x and then try

thanks it worked…there is 1 more daught…how to approach next pemutation question.

hi @S18LPC-OL0078 you can raise a new doubt under that question :slight_smile: