Commit 3ecad36
authored
fix: incorrect range detection in find_missing_number (TheAlgorithms#10361)
* Fix incorrect range detection in find_missing_number
* Support consecutive decreasing numbers
Added support for consecutive decreasing numbers in the find_missing_number function.
* Support unordered numbers1 parent c9ba5e1 commit 3ecad36
1 file changed
+11
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
14 | 20 | | |
15 | | - | |
16 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
17 | 24 | | |
18 | | - | |
19 | | - | |
| 25 | + | |
| 26 | + | |
20 | 27 | | |
21 | 28 | | |
0 commit comments