665. Non-decreasing Array

Example 1:

Example 2:

Note: The n belongs to [1, 10,000].

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *