Given an array nums, return true if the array was originally sorted in non-decreasing order, then rotated some number of positions (including zero). Otherwise, return false. There may be duplicates in ...
Due to the low number of test cases and linear runtime, I am able to consistently score 100% time efficiency. There should be more of such test cases, especially large testcases. This applies to both ...