Тёмный

Split Array Largest Sum | Leetcode 410. Daily Challenge | Binary Search Hard Interview Problem 

Code with Alisha
Подписаться 29 тыс.
Просмотров 14 тыс.
50% 1

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

 

27 окт 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 62   
@probabilitycodingisfunis1
@probabilitycodingisfunis1 2 года назад
int low = *max_element(nums.begin(),nums.end()); // 8 int high = accumulate(nums.begin(),nums.end(),0); // 23 int ans = low; while(lowm) low = mid+1; else { ans = mid; //minimize ans high = mid-1; } } return ans; } int no_of_subarrays_with_max_sum_as_mid(vector&nums, int mid) { int sum =0; int count = 1; for(int i=0;imid) { sum = nums[i]; count++; } else sum+=nums[i]; } return count; }
@dhananjoydey1337
@dhananjoydey1337 2 года назад
can you please upload solution of today's POTD?
@bharathkumar5870
@bharathkumar5870 2 года назад
hi,can you please reply why this is failing.I have just made one simple change ,i have written "=" case and "
@RohanSaluja
@RohanSaluja 2 года назад
I woke up in the morning and the first thing I saw was this question. And so, I went to bed again🙇🏻‍♂️🙅🏻‍♂️
@foodcourt6810
@foodcourt6810 2 года назад
🤣
@vidhanshuborade5977
@vidhanshuborade5977 11 месяцев назад
😂😂 legend
@informative180
@informative180 2 года назад
the effort you put in explanation is awesome and exceptional. keep making such videos. thanku so much .
@AbhimanyuSingh-vg9cl
@AbhimanyuSingh-vg9cl Год назад
You explained better than my relevel(unacedemy) teacher.Thanks.My confusion resolved.
@VedBrahmbhattBEE
@VedBrahmbhattBEE 2 месяца назад
very well explained! Thanks for the approach and intuition .
@llamamerogelio
@llamamerogelio Год назад
This has to be the best explaination for this problem on this platform, thank you!
@trickydirector2584
@trickydirector2584 2 месяца назад
Amazing explanation! Thank you so much!
@explained737
@explained737 7 месяцев назад
Awesome explanation mam❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤
@sarankumar165
@sarankumar165 2 года назад
brilliant problem and great explanation, LC :( That's how you gonna end an awesome March man!!
@probabilitycodingisfunis1
@probabilitycodingisfunis1 2 года назад
Thank you, yes it's an amazing problem 🤩
@aryankhairwal
@aryankhairwal Год назад
You solved it So Effortlessly, Nice Explanation. Thank you ❤️
@istiaqhossain3340
@istiaqhossain3340 2 года назад
thanks a lot.. i have watch many video. in every other video some how they get complicated in explaining how to select the low value... here its really cleared a lot...
@shudhanshukumar178
@shudhanshukumar178 9 месяцев назад
well explained !!!
@arjunpunni4221
@arjunpunni4221 Год назад
Your insights are just as beautiful as you are 😉, and I think that's really amazing. Keep shining!🤞
@asifbasheerkhan2855
@asifbasheerkhan2855 2 года назад
I never thought that in this question we can use Binary Search. Good explanation...
@HetNotFound
@HetNotFound 4 месяца назад
very well explained...tnx ma'am😊
@nikhilsoni8840
@nikhilsoni8840 5 месяцев назад
Thnx a lot didi you explained it in the best way....after getting disappointed from 2 BIG youtubers. Finally the topic is cleared here Thanks ❤
@manasvipathak391
@manasvipathak391 Год назад
Thankyou. Makes understanding very clear.
@aaviff1810
@aaviff1810 8 месяцев назад
Thank u mam The way u explained is next level❤️ U deserve more subs🙏
@danussh
@danussh 2 года назад
perfect😁😅 Thanks for approach
@purnamritab
@purnamritab 9 месяцев назад
Superb explanation, thank you so much.
@ekengineer9868
@ekengineer9868 Год назад
Nice explanation didi
@navoditatandon5476
@navoditatandon5476 9 месяцев назад
Amazing. Thank you !!!
@manoharank9171
@manoharank9171 7 месяцев назад
Well explained 🎉
@harshprajapati2729
@harshprajapati2729 Год назад
Thanks for the video
@sarcasticLordzz
@sarcasticLordzz 8 месяцев назад
god level explaination mam
@piyushagrawal3709
@piyushagrawal3709 2 года назад
How much time should I give to one question and after how much time I should see the solution
@happyyaar3157
@happyyaar3157 Год назад
Your explanation is just amazing
@muditkhanna8164
@muditkhanna8164 Год назад
this question is exactly same to book allocation and painter's partition.
@ushapandey1088
@ushapandey1088 9 месяцев назад
Thanku its today gfg potd
@meetpatil8531
@meetpatil8531 11 месяцев назад
nice explanation didi.....💯
@unknown47896
@unknown47896 Год назад
superb explanation...literally the best explanation for this problem on yt
@krishvibes1506
@krishvibes1506 2 года назад
Wow! Great explanation!
@jithuboi
@jithuboi Год назад
Thank you.
@namanshah8523
@namanshah8523 2 года назад
very well explained ma'am
@pranavkhatri30
@pranavkhatri30 Год назад
great explanation bhai!!
@me10amaanakhtar55
@me10amaanakhtar55 9 месяцев назад
Y star kyo lagaya gaya h please explain this
@raghavgoyal9153
@raghavgoyal9153 2 года назад
Thanku very much.
@Bavasharan
@Bavasharan Год назад
Is the mid value is calculated using indices but here with direct values can anyone explain
@Idukhan-jj9kc
@Idukhan-jj9kc 2 года назад
💯💯
@litegamertech1723
@litegamertech1723 2 года назад
Awesome explanation 🔥
@probabilitycodingisfunis1
@probabilitycodingisfunis1 2 года назад
Thank you 🙌
@rahulbhandari3558
@rahulbhandari3558 2 года назад
Best explanation 💯
@probabilitycodingisfunis1
@probabilitycodingisfunis1 2 года назад
Glad it helped
@rohan7071
@rohan7071 2 года назад
Oh thank goddddd for this!!! 🤕
@anushkathakur6531
@anushkathakur6531 7 месяцев назад
wow
@bharathkumar5870
@bharathkumar5870 2 года назад
this question is same as books allocation problem....
@meandpenguinvlogs8221
@meandpenguinvlogs8221 2 года назад
💯
@meandpenguinvlogs8221
@meandpenguinvlogs8221 2 года назад
👍👍👍👍
@dhananjoydey1337
@dhananjoydey1337 2 года назад
Niceeeeee
@Rajat_maurya
@Rajat_maurya 2 года назад
Not uploading videos?
@AmarjeetKumar-to9ub
@AmarjeetKumar-to9ub Год назад
🔥++
@vd5875
@vd5875 Год назад
Can you tell me the error, not getting proper output int isPossible(long long int a[], long long int n, long long int k, long long int mid) { int arrayCount = 1; long long int sum = 0; for(int i = 0; i < n; i++) { if(sum + a[i]
@dhruvgoel25
@dhruvgoel25 2 года назад
Very nice explanation 👏
@probabilitycodingisfunis1
@probabilitycodingisfunis1 2 года назад
Thank you so much ❤️
@karma7917
@karma7917 2 года назад
U r extremely cute😳
@ritwikchawla9000
@ritwikchawla9000 2 года назад
Woh mujhe apse doubt puchne hai toh app apna number de sakti ho !
@prakashmohaldar9004
@prakashmohaldar9004 2 года назад
Pro comder ko mera pranam😏
Далее
I get on the horse's nerves 😁 #shorts
00:12
Просмотров 3,1 млн
Split Array Largest Sum - Leetcode 410 - Python
16:51
Top 7 Algorithms for Coding Interviews Explained SIMPLY
21:22
I Solved 100 LeetCode Problems
13:11
Просмотров 170 тыс.