Тёмный

Leetcode Biweekly Contest 98 || Screencast + Commentary || Finishing in 32 mins 

Harisam sharma
Подписаться 9 тыс.
Просмотров 1,3 тыс.
50% 1

Опубликовано:

 

23 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 13   
@ashish1284
@ashish1284 Год назад
Your videos teach a lot to me. It's not just solution of problem. I get to know how you think, how you correct logic when not working. Please keep uploading videos. Thanks a lot Sir.
@Harisamsharma
@Harisamsharma Год назад
Glad to hear it :)
@loudcapricorn5513
@loudcapricorn5513 Год назад
@@Harisamsharma Yes indeed, there are tons of videos about the solutions and all, but getting to know how a CM thinks during contest, how calm he is, how he handles when going in the right direction . Very helpful...keep it up
@sahilanand30
@sahilanand30 Год назад
Legend
@sagarbisht8623
@sagarbisht8623 Год назад
Goat
@Rajat_maurya
@Rajat_maurya Год назад
God bhai
@PalashAgrawalECE
@PalashAgrawalECE Год назад
can I use ur segment tree code in contests? And also please share it.
@242deepak
@242deepak Год назад
what is the intuition behind soln for 2nd?
@sagemode6090
@sagemode6090 Год назад
same doubt like why we have to take that difference
@sagemode6090
@sagemode6090 Год назад
?
@rossgeller9372
@rossgeller9372 Год назад
@@sagemode6090 we want the minimum value of score, i.e. (low + high), low can be easily calculated to be 0. so we only want to minimize high. Eg.- [1,2,3,4,5] in this high will be 4. so if we want to minimize high, we need to change the [n-1] with [2] or [n-2] with [1] or [n-3] with [0]. Its actually pretty easy if u just look at it.
@d1vyanshu
@d1vyanshu Год назад
we want the minimum of (min + high). we can replace any two values. so let's make cases here - 1) we replace the first and the last values i.e. we replace nums[0] with nums[1] and nums[n-1] with nums[n-2] i.e. the difference = nums[n-2] - nums[1] 2) we replace the first two values i.e. we replace nums[0] with nums[2] and nums[1] with nums[2] as well i.e. difference = nums[n-1] - nums[2] 2) we replace the last two values i.e. we replace nums[n-1] with nums[n-3] and nums[n-2] with nums[n-3] as well i.e. difference = nums[n-3] - nums[0 we return the minimum of above
@vishala8788
@vishala8788 Год назад
This is what happens when rangey stops his poetry in between contest 😂
Далее
Timer using Python.
7:01
Просмотров 97
Eco-hero strikes again! ♻️ DIY king 💪🏻
00:48
Winning Google Kickstart Round A 2020 + Facecam
17:10
Is Computer Science still worth it?
20:08
Просмотров 216 тыс.
ASMR Programming - Spinning Cube - No Talking
20:45
Просмотров 3,9 млн
How I Got Good at Coding Interviews
6:29
Просмотров 1,6 млн
Eco-hero strikes again! ♻️ DIY king 💪🏻
00:48