Check if Array Is Sorted and Rotated | Leetcode 1752

  Рет қаралды 466

Techdose

Techdose

Күн бұрын

Пікірлер: 9
@freecourseplatformenglish2829
@freecourseplatformenglish2829 Сағат бұрын
Keep it up man. Solved it on my own it was an easy question. Really appreciate your commitment to post solution daily.
@tejaschavan007
@tejaschavan007 3 сағат бұрын
waited, and finally 🎉
@techdose4u
@techdose4u 2 сағат бұрын
Nice :) It will come everyday
@divyanshugupta4266
@divyanshugupta4266 2 сағат бұрын
Amazing And Thanks 😀😀😀
@techdose4u
@techdose4u 2 сағат бұрын
Most welcome 😊
@bunnybhonagiri
@bunnybhonagiri 2 сағат бұрын
nice sir...thankyou
@techdose4u
@techdose4u 2 сағат бұрын
Welcome 🙏🏼
@i.vigneshdavid1698
@i.vigneshdavid1698 2 сағат бұрын
Nice explanation 1)If the array is rotated, there is only one point where a[i-1]>a[i]. 2)If the arrays is sorted and not rotated then a[n-1] > a[0]. One we just iterate the array and increase the counter if the first condition satisfies . Now check second condition, if it satisfies increment counter. Finally return counter
@techdose4u
@techdose4u 2 сағат бұрын
Great :)
AI Is Making You An Illiterate Programmer
27:22
ThePrimeTime
Рет қаралды 249 М.
Леон киллер и Оля Полякова 😹
00:42
Канал Смеха
Рет қаралды 4,7 МЛН
Мясо вегана? 🧐 @Whatthefshow
01:01
История одного вокалиста
Рет қаралды 7 МЛН
ChatGPT vs Deep Seek: Who Wins the AI Showdown? 🤖
3:36
YouTechSpiration Channel
Рет қаралды 36
sin(x+y)°=?
11:15
Mathematopia
Рет қаралды 83