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

  Рет қаралды 13,769

Code with Alisha

Code with Alisha

Күн бұрын

Join this channel to get access to perks:
/ @probabilitycodingisfu...
Connect with me on LinkedIn : / alisha-parveen-80579850
Check out our other playlists:
Dynamic Programming:
• Dynamic Programming
Trees:
• Trees
Heaps and Maps:
• Heaps and Maps
Arrays and Maths:
• Arrays and Maths
Bit Manipulation:
• Bit Manipulation
Greedy Algorithms:
• Greedy Algorithms
Sorting and Searching:
• Sorting and Searching
Strings:
• Strings
Linked Lists:
• Linked Lists
Stack and Queues:
• Stacks and Queues
Two Pointers:
• Two pointers
Graphs, BFS, DFS:
• Graphs, DFS, BFS
Backtracking:
• Backtracking
Non- DSA playlists:
Probability:
• Probability
SQL-Basic Join functions:
• SQL - Basic JOIN Funct...
SQL-Basic Aggregate functions:
• SQL-Basic Aggregate Fu...

Пікірлер: 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 "
@informative180
@informative180 2 жыл бұрын
the effort you put in explanation is awesome and exceptional. keep making such videos. thanku so much .
@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 10 ай бұрын
😂😂 legend
@AbhimanyuSingh-vg9cl
@AbhimanyuSingh-vg9cl Жыл бұрын
You explained better than my relevel(unacedemy) teacher.Thanks.My confusion resolved.
@trickydirector2584
@trickydirector2584 Ай бұрын
Amazing explanation! Thank you so much!
@rogelio_camargo
@rogelio_camargo Жыл бұрын
This has to be the best explaination for this problem on this platform, 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...
@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 🤩
@VedBrahmbhattBEE
@VedBrahmbhattBEE 2 ай бұрын
very well explained! Thanks for the approach and intuition .
@aryankhairwal
@aryankhairwal Жыл бұрын
You solved it So Effortlessly, Nice Explanation. Thank you ❤️
@explained737
@explained737 7 ай бұрын
Awesome explanation mam❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤
@manasvipathak391
@manasvipathak391 Жыл бұрын
Thankyou. Makes understanding very clear.
@shudhanshukumar178
@shudhanshukumar178 9 ай бұрын
well explained !!!
@asifbasheerkhan2855
@asifbasheerkhan2855 2 жыл бұрын
I never thought that in this question we can use Binary Search. Good explanation...
@arjunpunni4221
@arjunpunni4221 Жыл бұрын
Your insights are just as beautiful as you are 😉, and I think that's really amazing. Keep shining!🤞
@navoditatandon5476
@navoditatandon5476 9 ай бұрын
Amazing. Thank you !!!
@danussh
@danussh 2 жыл бұрын
perfect😁😅 Thanks for approach
@nikhilsoni8840
@nikhilsoni8840 4 ай бұрын
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 ❤
@purnamritab
@purnamritab 9 ай бұрын
Superb explanation, thank you so much.
@ekengineer9868
@ekengineer9868 Жыл бұрын
Nice explanation didi
@unknown47896
@unknown47896 Жыл бұрын
superb explanation...literally the best explanation for this problem on yt
@krishvibes1506
@krishvibes1506 2 жыл бұрын
Wow! Great explanation!
@HetNotFound
@HetNotFound 4 ай бұрын
very well explained...tnx ma'am😊
@happyyaar3157
@happyyaar3157 Жыл бұрын
Your explanation is just amazing
@manoharank9171
@manoharank9171 7 ай бұрын
Well explained 🎉
@muditkhanna8164
@muditkhanna8164 Жыл бұрын
this question is exactly same to book allocation and painter's partition.
@harshprajapati2729
@harshprajapati2729 Жыл бұрын
Thanks for the video
@meetpatil8531
@meetpatil8531 11 ай бұрын
nice explanation didi.....💯
@namanshah8523
@namanshah8523 2 жыл бұрын
very well explained ma'am
@aaviff1810
@aaviff1810 7 ай бұрын
Thank u mam The way u explained is next level❤️ U deserve more subs🙏
@pranavkhatri30
@pranavkhatri30 Жыл бұрын
great explanation bhai!!
@piyushagrawal3709
@piyushagrawal3709 2 жыл бұрын
How much time should I give to one question and after how much time I should see the solution
@sarcasticLordzz
@sarcasticLordzz 8 ай бұрын
god level explaination mam
@ushapandey1088
@ushapandey1088 9 ай бұрын
Thanku its today gfg potd
@jithuboi
@jithuboi Жыл бұрын
Thank you.
@litegamertech1723
@litegamertech1723 2 жыл бұрын
Awesome explanation 🔥
@probabilitycodingisfunis1
@probabilitycodingisfunis1 2 жыл бұрын
Thank you 🙌
@Idukhan-jj9kc
@Idukhan-jj9kc 2 жыл бұрын
💯💯
@rahulbhandari3558
@rahulbhandari3558 2 жыл бұрын
Best explanation 💯
@probabilitycodingisfunis1
@probabilitycodingisfunis1 2 жыл бұрын
Glad it helped
@rohan7071
@rohan7071 2 жыл бұрын
Oh thank goddddd for this!!! 🤕
@Bavasharan
@Bavasharan Жыл бұрын
Is the mid value is calculated using indices but here with direct values can anyone explain
@raghavgoyal9153
@raghavgoyal9153 Жыл бұрын
Thanku very much.
@bharathkumar5870
@bharathkumar5870 2 жыл бұрын
this question is same as books allocation problem....
@anushkathakur6531
@anushkathakur6531 7 ай бұрын
wow
@meandpenguinvlogs8221
@meandpenguinvlogs8221 2 жыл бұрын
💯
@me10amaanakhtar55
@me10amaanakhtar55 9 ай бұрын
Y star kyo lagaya gaya h please explain this
@meandpenguinvlogs8221
@meandpenguinvlogs8221 2 жыл бұрын
👍👍👍👍
@dhananjoydey1337
@dhananjoydey1337 2 жыл бұрын
Niceeeeee
@AmarjeetKumar-to9ub
@AmarjeetKumar-to9ub Жыл бұрын
🔥++
@dhruvgoel25
@dhruvgoel25 2 жыл бұрын
Very nice explanation 👏
@probabilitycodingisfunis1
@probabilitycodingisfunis1 2 жыл бұрын
Thank you so much ❤️
@Rajat_maurya
@Rajat_maurya 2 жыл бұрын
Not uploading videos?
@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]
@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😏
Split Array Largest Sum - Leetcode 410 - Python
16:51
NeetCode
Рет қаралды 84 М.
BS 19. Painter's Partition and Split Array - Largest Sum
11:20
take U forward
Рет қаралды 108 М.
Я сделала самое маленькое в мире мороженое!
00:43
Кушать Хочу
Рет қаралды 4,7 МЛН
VAMPIRE DESTROYED GIRL???? 😱
00:56
INO
Рет қаралды 8 МЛН
黑的奸计得逞 #古风
00:24
Black and white double fury
Рет қаралды 22 МЛН
Бенчик, пора купаться! 🛁 #бенчик #арти #симбочка
00:34
Симбочка Пимпочка
Рет қаралды 3,4 МЛН
Longest subarray with sum divisible by K | GfG problem of the day
16:48
Code with Alisha
Рет қаралды 11 М.
3 Types of Algorithms Every Programmer Needs to Know
13:12
ForrestKnight
Рет қаралды 486 М.
LeetCode was HARD until I Learned these 15 Patterns
13:00
Ashish Pratap Singh
Рет қаралды 472 М.
I Solved 100 LeetCode Problems
13:11
Green Code
Рет қаралды 131 М.
Я сделала самое маленькое в мире мороженое!
00:43
Кушать Хочу
Рет қаралды 4,7 МЛН