wtf I thought it was really hard until I saw this video. Thanks for the explanation
@NareshGuptaАй бұрын
That's the spirit!
@rahulghadage63342 ай бұрын
Not understood middle for loop. 😢
@Satya-g5t2 ай бұрын
nice solutions you are posting, will bookmark your channel. 😀
@NareshGuptaАй бұрын
Welcome aboard!
@3lpme3 ай бұрын
Good procedure
@NareshGuptaАй бұрын
Glad you liked it!
@techiji16453 ай бұрын
code gives and error
@ayushman_sr3 ай бұрын
wtf! it is so much simple
@aavashkuikel13413 ай бұрын
Awesome solution bro. Love from America
@NareshGupta3 ай бұрын
Glad it helped
@beesettykalimahesh93734 ай бұрын
Thanks for your effort for clear explaination.
@NareshGupta4 ай бұрын
Glad it was helpful!
@priyagupta76624 ай бұрын
THANK U SOO MUCH!!!
@KeerthiReddyKolan4 ай бұрын
How to did we get this formulae? idealSpots=No.of Chunks - cooling time?
@satviksrinivas87644 ай бұрын
Thank you
@NareshGupta4 ай бұрын
You're welcome
@shashwatnandan50835 ай бұрын
worst video of all time . get lost from yt.
@Thunder976545 ай бұрын
Crisp and to the point explanation 🙏🙏, Thank you
@NareshGupta4 ай бұрын
Glad it was helpful!
@PrinceSadh-bs5ml5 ай бұрын
We all understand the recursion tree. We just don't understand this specific line: (!winnerSquareGame()). Which is the main part of the problem and you didn't explain that.
@dinesh31755 ай бұрын
i/2 i didn't understand any one explain it
@ROHITKUMAR-e4c7t5 ай бұрын
great , can you explain , binary search method also. If you are still active, please make a video to explain binary search method for this problem, I am subscribing you for notifications.
@shotsologytamil5 ай бұрын
you took wrong numbers from the list
@bhaiisonline83925 ай бұрын
3 years after , this problem still exists on leetcode
@tanmayraj27975 ай бұрын
sir your solution expalnation is best thanks uu...
@NareshGupta4 ай бұрын
Most welcome
@iamnoob75936 ай бұрын
Below average explanation , Thanks
@saurabhmohrir4266 ай бұрын
very nice solution keep it going bro
@NareshGupta4 ай бұрын
Thanks
@eklavya22k346 ай бұрын
Thanks
@yashgodbole82476 ай бұрын
but what if we change 0 to11 and 1 to 12 and 6 to 9 then the minimum value we be 9 and maximum wiil as it is 15 then difference will create of 6 . 15-9=6
@souravde38946 ай бұрын
if the String is long then we have to use this code : - import java.math.BigInteger; class Solution { public int compareVersion(String version1, String version2) { String v1[] = version1.split("\\."); String v2 []= version2.split("\\."); for (int i=0; i < Math.max(v1.length, v2.length); i++) { BigInteger num1 = i < v1.length ? new BigInteger(v1[i]) : BigInteger.ZERO; BigInteger num2 = i < v2.length ? new BigInteger(v2[i]) : BigInteger.ZERO; int comp = num1.compareTo(num2); if(comp == 0) { continue; } return comp; } return 0; } }
@cs_in_10_minutes6 ай бұрын
Kadane's Algorithm it is, I no where see DP. Please don't mention DP in heading
@vinamrasangal84367 ай бұрын
naresh bhai !!
@servantofthelord81477 ай бұрын
Thank you sir! Your video was very helpful to me!
@NareshGupta6 ай бұрын
Glad it helped
@iwillleavelasto99757 ай бұрын
Thank you! Great quick video!
@NareshGupta6 ай бұрын
You're welcome!
@sarveshjoshi69137 ай бұрын
u just know the solution but u cant explain it
@ganeshjaggineni40977 ай бұрын
NICE SUPER EXCELLENT MOTIVATED
@NareshGupta6 ай бұрын
All the best
@ganeshjaggineni40977 ай бұрын
NICE SUPER EXCELLENT MOTIVATED
@NareshGupta4 ай бұрын
All the best
@AshwiniYeokar8 ай бұрын
I am also in uae and searching for java developer position having 1.9 yrs of experience in IBM india, if you can help in placement in dubai it will b helpful. Thank you i understand this question approch from your video.
@ganeshjaggineni40978 ай бұрын
NICE SUPER EXCELLENT MOTIVATED
@NareshGupta2 күн бұрын
Thanks keep watching
@ankurprakashsrivastava77648 ай бұрын
Very well explained 👏
@NareshGupta6 ай бұрын
Glad it was helpful!
@lavanya_m018 ай бұрын
I didn't even understand the problem description. After your initial beautiful explanation, I was able to code it myself! Thanks :)
@NareshGupta8 ай бұрын
Great to hear!
@Codro098 ай бұрын
wonderful solution sir I was watching 2-3 videos before and none of the approach was understandable and after watching yours I coded myself.
@NareshGupta8 ай бұрын
Great to hear!
@vivekdatta-j8p8 ай бұрын
Damn bro! the explanation was so neat!! keep it up
@theFifthMountain1238 ай бұрын
for the algorithm.Thanks
@AmrShOmar8 ай бұрын
i"ll be using this algorithm in my assignment, i'll edit my comment if i got A+
@alihisham5468 ай бұрын
yes me too!!! (i'm with him in the group assignment)
@dwakwe27968 ай бұрын
Thank you very much.
@NareshGupta8 ай бұрын
Welcome 😊
@INetreba9 ай бұрын
Thank you! Great reasources
@NareshGupta8 ай бұрын
Glad it was helpful!
@parthh11129 ай бұрын
class Solution { public: int length (ListNode *&l){ int cnt = 0; ListNode *t = l; while(t){ t = t->next; cnt++; } return cnt; } void addZero(ListNode *&l,int cnt){ ListNode *add = new ListNode(0); ListNode *b = add; cnt--; while(cnt > 0){ cnt--; ListNode *n = new ListNode(0); add -> next = n; add = n; } add -> next = l; l = b; } void addll(ListNode *&l1,ListNode *&l2,int& cnt){ if(!l1 && !l2)return ; addll(l1->next,l2->next,cnt); int sum = l1->val+l2->val+cnt; cnt = sum / 10; l1 -> val = sum % 10; } ListNode* addTwoNumbers(ListNode* l1, ListNode* l2) { int c1 = length(l1); int c2 = length(l2); int l = abs(c1-c2); if(c1 > c2) addZero(l2,l); else if(c1 < c2) addZero(l1,l); int c = 0; addll(l1,l2,c); if(c){ ListNode *n = new ListNode(1); n -> next = l1; l1 = n; } return l1; } };
@sanooosai9 ай бұрын
great thank you
@FrezoreR9 ай бұрын
While very simple it's pretty elegant to encode unbalanced as -1. The boolean statement could even be height(root) >= 0, which reads really well.
@jashanjotbedi17969 ай бұрын
count = (k-1)*m ?? not understood this code
@spartant_12129 ай бұрын
Time complexity here is O(n) is because you do not sort the result. Actually your final answer is not sorted that is not correct they expect final array should be sorted so you need to sort the array at the end and that is why time Complexity is Onlogn Please correct me If I'm wrong