-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit d403b28
Ensure K value in reverseK is at least 1
Passing 0 or a negative value for K does not cause errors, as the input
is an integer. However, this behavior may be confusing for users. To
improve clarity, enforce K to be an integer greater than or equal to 1
and return an error if the input is invalid.
Co-authored-by: Po-Ying Chiu <charlie910417@gmail.com>
Change-Id: Ic68c1acbbd45153da8c3d7682d9251eec9ce597f1 parent aec0044 commit d403b28
1 file changed
+2
-2
lines changedLines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
823 | 823 |
| |
824 | 824 |
| |
825 | 825 |
| |
826 | - | ||
827 | - | ||
826 | + | ||
827 | + | ||
828 | 828 |
| |
829 | 829 |
| |
830 | 830 |
| |
|
0 commit comments