Aug-07-2017, 09:10 PM
I don't understand. In your original post, you said you wanted the first number that wasn't larger. Now you want the first number that IS larger. It should be simple to switch either of the code samples provided to do that (flip a < to a >), but that might just cause an issue with different input. I think you need to more clearly define what it is, exactly, the output looks like for the various input.