Commit c2318ab
Add input validation to cyclic_sort to prevent invalid inputs (#15009)
* Add input validation to cyclic_sort
* Add input validation to cyclic_sort
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* f string literal bug resolved
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* test cyclic sort input validation
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>1 parent 5a6cc48 commit c2318ab
1 file changed
Lines changed: 29 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
30 | 41 | | |
31 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
32 | 58 | | |
33 | 59 | | |
34 | 60 | | |
35 | | - | |
36 | 61 | | |
37 | | - | |
38 | | - | |
| 62 | + | |
39 | 63 | | |
40 | 64 | | |
| 65 | + | |
41 | 66 | | |
42 | | - | |
43 | | - | |
44 | 67 | | |
45 | 68 | | |
46 | 69 | | |
| |||
50 | 73 | | |
51 | 74 | | |
52 | 75 | | |
| 76 | + | |
53 | 77 | | |
54 | 78 | | |
55 | 79 | | |
0 commit comments