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
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.
Do solve this one, it is the most Frequently asked question in Amazon !! - Intuition samaj aaya kya 🫡??
nehi
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
Aapse itne mahino mee itna sikh chuka huu ki ab bass aapko dekhe ke liye video kholta huu😌😂,Thanks a ton
damm bhai, first video of yours, already too impressed with the explaination
best solution with better explaination
Best explaination so for just by intution i write the whole code
You explained this so well! I think you will give tough competition to neetcode and pepcoding! Awesome work Aryan bhai. Keep going!
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
thanks a million. I finally understand it
such a great explaination sir 😍😍
excellent explanation!!!
public int maxFrequency (int[]nums,int k){
int ans=0; long sum=0;
Arrays.sort (nums);
for(int l=0,r=0;r
bro thats brilliant!
i am not able to solve this type of questions how should i improve
pls also explain two pointer method for this problem
Sir please make video on sliding window concept please 🙏
thank you
Why haven't you made a video on yesterday's daily problem?
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.
plz dont copy striver's style of teaching humble request it looks cringe