The best part about your explanation is that you always develop the intuition first. That helps me a lot in solving other similar problems. Keep making more videos of interviewbit problems. Thanks a lot.
@probabilitycodingisfunis12 жыл бұрын
Thanks Avinash!
@manikmalhotra39032 жыл бұрын
Just came across this channel. One of the best and easy-to-understand content. Thank you
@probabilitycodingisfunis12 жыл бұрын
Thank you Manik!
@attyuttamsaha82 жыл бұрын
Really loved the way you have explained the concept and related the two problems.
@mrinmoyhalder72932 жыл бұрын
thanks for the approach, I understand the concept clearly, but one thing I want to say is that changing input may not be feasible always, so it's better to keep a variable which ++ and -- accordingly.
@annanyamathur88692 жыл бұрын
I really like your way of explaining
@akashnigam53212 жыл бұрын
Just got to know that you are an alumni of my college IIT Bombay, your videos are really helpful.
@ankit_irl2 жыл бұрын
Top notch explanation. Thank you for existing
@probabilitycodingisfunis12 жыл бұрын
Glad you liked it!
@mrinalmadhav81193 жыл бұрын
Tysm mam, it was great, loved it, big fan of u mam
@raju_bugude2 жыл бұрын
nice explanation(intution part)
@probabilitycodingisfunis12 жыл бұрын
Thank you so much
@pharmacybyanuj24592 жыл бұрын
your way of teaching is really superb when ever i understand any problem by you it clear my concepts. thanks Alisha didi di can you tell me how should i make dsa notes ? or make a video how to make dsa notes
@rithikrk3695 Жыл бұрын
Beauty with brain....very nice explanation mam!
@namanagrawal1908 Жыл бұрын
Great Explanation
@truptisatsangi60432 жыл бұрын
very nice explaination along with related topic so you to go nowhere for 1 question. Great job
@vikaskumar-kc4jv2 жыл бұрын
Make more videos you are really awesome
@jatinbhatoya84202 жыл бұрын
for java users - public static int[] flip(String A) { int left = -1, right = -1; int sum = 0, maxSum = 0, currleft = 0; for (int i = 0; i < A.length(); i++) { sum += A.charAt(i) == '0' ? 1 : -1; if (sum < 0) { sum = 0; currleft = i + 1; } if (sum > maxSum) { maxSum = sum; left = currleft; right = i; } } if (left == -1 && right == -1) return new int[0]; return new int[]{left + 1, right + 1}; }
@rajbhardwaj21802 жыл бұрын
Hey Alisha Plz tell the way how to remember ,truth table of all flip flops quite confusing
@raj_kundalia2 жыл бұрын
Thanks for the video!
@rohankumarshah56792 жыл бұрын
fantastic !!
@aniketkumarsinha25372 жыл бұрын
I guess you skip this part "return the lexicographically smallest pair of L and R."
@avinashvishwakarma64882 жыл бұрын
but code still runs. Why?
@dishantmeena16212 жыл бұрын
Actually in this approach, we are considering only the best flipping which will give us the maximum no. of ones. So, we are constantly updating our L and R values and only return the best pos. Hope this will help.
@deepakkapasia12 жыл бұрын
More than half test cases failed with this solution. Explaination good for the question and kadane algo but figuring out index not explained.
@siddharthjain43612 жыл бұрын
hi , answer could be one or more right ...how did u check lexicographically for the same
@Hadle6952 жыл бұрын
can u plzz share your code
@rizwanpolice27412 жыл бұрын
At the timestamp 7:22 in the kadane algorighm. the solution will not work for all the negative integer array. For example if the array is {-2,-4,-9,-3,-1} The maximum subarray sum will be -1. But with the above pseudo code, it will be 0.
@sambhavsharma27802 жыл бұрын
just init maxSum with arr[0]
@neerajjoshi12492 жыл бұрын
for that take the value of max_sum as INT_MAX
@chandraprakashsahu85572 жыл бұрын
can you please drop your linkedIn id
@govinth2462 Жыл бұрын
hi mam I wanna Connect With you can i get your LinkedIn ID