1838. Frequency of the Most Frequent Element | Sliding Window Template | Shrinking & Non-Shrinking

  Рет қаралды 9,781

Aryan Mittal

Aryan Mittal

Күн бұрын

Пікірлер: 21
@ARYANMITTAL
@ARYANMITTAL Жыл бұрын
Do solve this one, it is the most Frequently asked question in Amazon !! - Intuition samaj aaya kya 🫡??
@saikatdas7026
@saikatdas7026 6 ай бұрын
nehi
@worldofniyathi
@worldofniyathi 9 ай бұрын
i have searched more than 5 solutions and even saw a top viewed video, but your solution is crystal clear, thank you so much 😊 , keep growing
@yashpadiyar4952
@yashpadiyar4952 Жыл бұрын
Aapse itne mahino mee itna sikh chuka huu ki ab bass aapko dekhe ke liye video kholta huu😌😂,Thanks a ton
@Divy2-zx4eo
@Divy2-zx4eo 4 ай бұрын
damm bhai, first video of yours, already too impressed with the explaination
@hardikpatel352
@hardikpatel352 8 ай бұрын
best solution with better explaination
@VishalKumar-uu3xm
@VishalKumar-uu3xm Жыл бұрын
Best explaination so for just by intution i write the whole code
@KyuriousBot
@KyuriousBot 11 ай бұрын
You explained this so well! I think you will give tough competition to neetcode and pepcoding! Awesome work Aryan bhai. Keep going!
@OmprakashYadav-nq8uj
@OmprakashYadav-nq8uj 7 ай бұрын
public int maxFrequency(int[] nums, int k) { Arrays.sort(nums); int n = nums.length; long runningSum = 0; int start = 0; int end = 0; long maxFreq = 1; while (end < n) { long diff = end - start; long req = diff * nums[end] - runningSum; if (req
@jamjam3448
@jamjam3448 3 ай бұрын
thanks a million. I finally understand it
@prashant12313
@prashant12313 Жыл бұрын
such a great explaination sir 😍😍
@tarunsahu1366
@tarunsahu1366 9 ай бұрын
excellent explanation!!!
@dayashankarlakhotia4943
@dayashankarlakhotia4943 Жыл бұрын
public int maxFrequency (int[]nums,int k){ int ans=0; long sum=0; Arrays.sort (nums); for(int l=0,r=0;r
@silvbgf5253
@silvbgf5253 Жыл бұрын
bro thats brilliant!
@mohdkhaleeq7468
@mohdkhaleeq7468 Жыл бұрын
i am not able to solve this type of questions how should i improve
@vineetherenj3143
@vineetherenj3143 11 ай бұрын
pls also explain two pointer method for this problem
@sunny01111
@sunny01111 Жыл бұрын
Sir please make video on sliding window concept please 🙏
@pavanyadav3092
@pavanyadav3092 9 ай бұрын
thank you
@bachkhoahuynh9110
@bachkhoahuynh9110 Жыл бұрын
Why haven't you made a video on yesterday's daily problem?
@ARYANMITTAL
@ARYANMITTAL Жыл бұрын
Bro, please join telegram channel, every updates are given there, for every slightest of delays too ❤️!! - Reason was I was travelling back to blr & then straight went to office due to critical task and came back home at 11pm ist, thus couldn’t make it.
@brainmosquito7
@brainmosquito7 13 күн бұрын
plz dont copy striver's style of teaching humble request it looks cringe
Муж внезапно вернулся домой @Oscar_elteacher
00:43
История одного вокалиста
Рет қаралды 6 МЛН
How To Choose Mac N Cheese Date Night.. 🧀
00:58
Jojo Sim
Рет қаралды 88 МЛН
快乐总是短暂的!😂 #搞笑夫妻 #爱美食爱生活 #搞笑达人
00:14
朱大帅and依美姐
Рет қаралды 12 МЛН
I Solved 100 LeetCode Problems
13:11
Green Code
Рет қаралды 245 М.
How to STUDY so FAST it feels like CHEATING
8:03
The Angry Explainer
Рет қаралды 1,8 МЛН
1980. Find Unique Binary String | 3 Ways
21:57
Aryan Mittal
Рет қаралды 1,4 М.
5 Useful F-String Tricks In Python
10:02
Indently
Рет қаралды 329 М.
Sliding Window Technique - Algorithmic Mental Models
36:45
Ryan Schachte
Рет қаралды 362 М.
Муж внезапно вернулся домой @Oscar_elteacher
00:43
История одного вокалиста
Рет қаралды 6 МЛН