(Old) Leetcode 665 - Non Decreasing Array | Array

preview_player
Показать описание
*Guys so at 2:02, I made a mistake. It should be nums_i-1 greater than nums_i

Big thank you to viewers Nashid and Rajneesh for taking the time to help me out

Topic: Array

Code:

Leetcode:

*Note* I claim no rights to this question. All rights belong to Leetcode. If I'm reviewing a solution that was from another Leetcode user or Leetcode itself I will give credit below.
Рекомендации по теме
Комментарии
Автор

Hi... Thank you for the video. It's good but you need to explain the logic more like why we want nums[i-2] <= nums[i]. That is the reason people like me would wanna come to youtube to understand :)

kopalsoni
Автор

Hey can you explain why in your code you used another terminating condition inside for loop (&& count <= 1;)

Sameeranborah
Автор

if(nums[i-1] > nums[i]) thank me later..

parasuram
Автор

Sorry, as soon as you started writing code, I paused because I know it's gonna be pointless. Thanks for the effort, but hope you realize you are not teaching.

pvchio
welcome to shbcf.ru