Unclearness of the question statement
I put some customized test cases where the variable limit < max(nums) and foudn those illegal. \nBut there seems to be no explicit statement of the constraint o
I put some customized test cases where the variable limit < max(nums) and foudn those illegal. \nBut there seems to be no explicit statement of the constraint of limit >= max(nums). \nI think without this constraint, the question is much more complex than it is currently.
[]