Maximum Beauty of an Array After Applying Operation | Leetcode 2779

  Рет қаралды 3,604

Techdose

Techdose

Күн бұрын

Пікірлер: 38
@ayushmourya5629
@ayushmourya5629 Ай бұрын
Hi sir, I have been following your daily videos for a while and the consistency to post these so early in the morning is truly remarkable. Thank You
@techdose4u
@techdose4u Ай бұрын
Appreciate it, I try my best to keep up the daily rhythm!
@ricardoriolgonzalez1128
@ricardoriolgonzalez1128 Ай бұрын
Nice idea and explanation!
@techdose4u
@techdose4u Ай бұрын
Thank you! Cheers!
@JuicyM0N
@JuicyM0N Ай бұрын
love your explanation!!! just one thing about this video , there is some kind of electrical disturbance in audio , for reference check 8:25 - 8:35 .
@techdose4u
@techdose4u Ай бұрын
I had noticed while editing. This is due to the mic shaking due to unstable table. The swing arm of the mic holder is not very stable :| Gotta do something about it
@BigStin-0
@BigStin-0 Ай бұрын
Thank you Sir!
@techdose4u
@techdose4u Ай бұрын
Welcome! 😊
@nicolaswolyniec1354
@nicolaswolyniec1354 Ай бұрын
I used the sweep line technique to solve it. I remembered one of your previous videos. Thanks!
@techdose4u
@techdose4u Ай бұрын
nice
@GauravAttri-j5m
@GauravAttri-j5m Ай бұрын
Can you please post the solution here , i too tried to solve it with sweep but it showed some error
@nicolaswolyniec1354
@nicolaswolyniec1354 Ай бұрын
@@GauravAttri-j5m sure thing! class Solution: def maximumBeauty(self, nums: List[int], k: int) -> int: events = [] for n in nums: events.append((n-k, 1)) events.append((n+k+1, -1)) events.sort() ans = 0 curr = 0 for p, e in events: curr += e ans = max(ans, curr) return ans
@GauravAttri-j5m
@GauravAttri-j5m Ай бұрын
@@nicolaswolyniec1354 thanks
@LinhĐình-o5o
@LinhĐình-o5o Ай бұрын
thank you for your lesson
@techdose4u
@techdose4u Ай бұрын
Welcome 😊
@ViratDwivediMIA
@ViratDwivediMIA Ай бұрын
1:20 what calculation is it ? plz i didn't get
@rutikbhanushali957
@rutikbhanushali957 Ай бұрын
Intuitive approach..
@techdose4u
@techdose4u Ай бұрын
👍🏼
@sailendrachettri8521
@sailendrachettri8521 Ай бұрын
Thank you sir :)
@techdose4u
@techdose4u Ай бұрын
welcome :)
@deeshadubey3127
@deeshadubey3127 Ай бұрын
Nice sir.. But there I one more thing we can keep moving right Pointer and we will only move the left only if it breaks our condition in this way we can do this using single loop❤ Thanks a lot🙏
@techdose4u
@techdose4u Ай бұрын
welcome
@devmahad
@devmahad Ай бұрын
thanks :)
@techdose4u
@techdose4u Ай бұрын
welcome :)
@vishweshchaudhari5285
@vishweshchaudhari5285 Ай бұрын
Hello it would be very use if we get some videos on how to approach problem or pattern in general. Instead solution directly. May improve overall understanding
@techdose4u
@techdose4u Ай бұрын
👌🏽
@sriraman1817
@sriraman1817 Ай бұрын
Thanks a lot for all the videos. By any chance is there any plan to post videos of contest solutions also ?
@techdose4u
@techdose4u Ай бұрын
welcome. no such plan due to lack of time.
@prasunroy2802
@prasunroy2802 Ай бұрын
Similar questions: 1. 3346 Maximum Frequency of an Element After Performing Operations I 2. 3347 Maximum Frequency of an Element After Performing Operations II
@techdose4u
@techdose4u Ай бұрын
great
@AlbinSabu-y2v
@AlbinSabu-y2v Ай бұрын
Love the way of ur expln calm neat & deep❤🎉 , by the way can u pls explain how we compare the 10to the power of any num (given constraints)compared with TC . Thankyou
@techdose4u
@techdose4u Ай бұрын
kzbin.info/www/bejne/lX2mpKprf5KAoJIsi=y4GmUlGZYMeYmyy9
@AlbinSabu-y2v
@AlbinSabu-y2v Ай бұрын
@techdose4u thnkyou🤍
@GoodBoy-bi8up
@GoodBoy-bi8up Ай бұрын
sir,y v r multipling the value k with 2
@dushyantsinghkhichi5895
@dushyantsinghkhichi5895 Ай бұрын
I + K
@techdose4u
@techdose4u Ай бұрын
i-k to i+k is 2*k
@vaibhav454
@vaibhav454 Ай бұрын
Please start uploading LeetCode contest solutions....
@techdose4u
@techdose4u Ай бұрын
out of time man :(
Continuous Subarrays | Leetcode 2762
24:05
Techdose
Рет қаралды 8 М.
Каха и дочка
00:28
К-Media
Рет қаралды 3,4 МЛН
So Cute 🥰 who is better?
00:15
dednahype
Рет қаралды 19 МЛН
Сестра обхитрила!
00:17
Victoria Portfolio
Рет қаралды 958 М.
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 120 МЛН
Special Array II | Leetcode 3152
13:49
Techdose
Рет қаралды 4,4 М.
one year of studying (it was a mistake)
12:51
Jeffrey Codes
Рет қаралды 270 М.
Remove K digits | Build lowest number | Leetcode #402
15:30
Techdose
Рет қаралды 90 М.
I Solved 100 LeetCode Problems
13:11
Green Code
Рет қаралды 334 М.
Hash Tables and Hash Functions
13:56
Computer Science Lessons
Рет қаралды 1,6 МЛН
Каха и дочка
00:28
К-Media
Рет қаралды 3,4 МЛН