989ed51d6b
Here the identification process of the array that it is sorted or not was not properly constructed. Addition of the if statement will ensure that a sorted array with duplicate entries can be entered and identified. |
||
---|---|---|
.. | ||
C | ||
CPlusPlus | ||
CSharp | ||
Go | ||
Haskell | ||
Java | ||
JavaScript | ||
Python | ||
Rust |