You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hii , hope you are doing well. The method appears to have input validation, but minSquares(-1) still returns 3. It looks like the validation is either not being reached or the IllegalArgumentException is being suppressed. The negative-input check should execute before the algorithm, and the exception should be allowed to propagate to the caller instead of returning a default value.
Activity
priyanshuvishwakarma273403 commentedon Jul 22, 2026
hy can i fix this issue could you please assign this to me ?
Hridya102 commentedon Jul 23, 2026
Hii , hope you are doing well. The method appears to have input validation, but minSquares(-1) still returns 3. It looks like the validation is either not being reached or the IllegalArgumentException is being suppressed. The negative-input check should execute before the algorithm, and the exception should be allowed to propagate to the caller instead of returning a default value.
dhruvshukla0407-dotcom commentedon Jul 25, 2026
Hey its is my first contri so can i try contributing to this?