- 405
- 1 544 951
Naresh Gupta
India
เข้าร่วมเมื่อ 1 ม.ค. 2012
I am Naresh Gupta, an IIT Guwahati Alumnus and Sr. Software Engineer at Careem (Uber). My goal is to share my knowledge of programming by posting educational videos on Data Structure and Algorithm Problem Solving, that will allow everyone to learn and prepare for interviews.
Join the channel, Naresh Gupta Timeline:
Hit 100 Subs on May 31, 2020
Hit 1,000 Subs on Aug 27, 2020
Hit 2,500 Subs on Dec 24, 2020
Hit 5,000 Subs on Aug 14, 2021
.
.
.
Hit 100K Subs on ……Yeah right, keep dreamin’ Naresh.......
*** SUBSCRIBE NOW ***
th-cam.com/users/NareshGupta
Global Village Fireworks Dubai
#short #globalvillage #global #dubai #crackers #fireworks
มุมมอง: 1 648
วีดีโอ
Beautiful Pokhara Valley View from Sarangkot Nepal Hill Homestay Room
มุมมอง 140ปีที่แล้ว
#shorts #pokhara #nepal #mountains #lake #view #amazing #trending
Palm Island and Marina Skyscraper View from Balcony | Dubai Life
มุมมอง 87ปีที่แล้ว
#shorts #palmisland #dubaimarina #skyscraper #tower #view #dubai #dubailife #coderindubai
Tashkent Magic City Water Show | Uzbekistan | Central Asia
มุมมอง 226ปีที่แล้ว
Tashkent Magic City Water Show | Uzbekistan | Central Asia Follow me on - Instagram - naresh_gupta_foodie LinkedIn - www.linkedin.com/in/nareshiitg/
Dubai Drone Show | Enter The Future | Happy New Year 2023 | Blue Waters Island | The Beach JBR Dubai
มุมมอง 2.9Kปีที่แล้ว
Dubai Drone Show | Enter The Future | Happy New Year 2023 | Blue Waters Island | The Beach JBR Dubai Follow me on - LinkedIn - www.linkedin.com/in/nareshiitg/ Instagram - naresh_gupta_foodie Facebook - groups/cookcodetravel Quora - www.quora.com/q/cookcodetravel
Happy New Year Fireworks | Happy New Year 2023 Dubai | JBR The Beach | Blue Water Island
มุมมอง 387ปีที่แล้ว
Happy New Year Fireworks | Happy New Year 2023 Dubai | JBR The Beach | Blue Water Island Follow me on - LinkedIn - www.linkedin.com/in/nareshiitg/ Instagram - naresh_gupta_foodie Facebook - groups/cookcodetravel Quora - www.quora.com/q/cookcodetravel
Max Consecutive Ones | LeetCode 485 | Array
มุมมอง 1.1K3 ปีที่แล้ว
Problem Link - leetcode.com/problems/max-consecutive-ones/ Subscribe for more educational videos on data structure, algorithms and coding interviews - th-cam.com/users/NareshGupta Code Repository - github.com/naresh1406/youtube/tree/master/src/main/cp/leetcode/problems Popular Playlists: Top Interview Questions: th-cam.com/play/PLamEquLLzOthxXOEXLApkGm99TMUDrCmc.html Dynamic Programming: th-cam...
RLE Iterator | LeetCode 900 | List TreeMap | Google
มุมมอง 1.7K3 ปีที่แล้ว
(00:00) Problem Explanation (03:15) Brute Force (06:00) TreeMap Approach (10:30) Best Approach Problem Link - leetcode.com/problems/rle-iterator/Subscribe for more educational videos on data structure, algorithms and coding interviews - th-cam.com/users/NareshGupta Code Repository - github.com/naresh1406/youtube/tree/master/src/main/cp/leetcode/problemsPopular Playlists:Top Interview Questions:...
Largest Plus Sign | LeetCode 764 | Matrix | Uber
มุมมอง 2.8K3 ปีที่แล้ว
Problem Link - leetcode.com/problems/largest-plus-sign/ Subscribe for more educational videos on data structure, algorithms and coding interviews - th-cam.com/users/NareshGupta Code Repository - github.com/naresh1406/youtube/tree/master/src/main/cp/leetcode/problems Popular Playlists: Top Interview Questions: th-cam.com/play/PLamEquLLzOthxXOEXLApkGm99TMUDrCmc.html Dynamic Programming: th-cam.co...
Shifting Letters | LeetCode 848 | String | Facebook
มุมมอง 2.4K3 ปีที่แล้ว
Shifting Letters | LeetCode 848 | String | Facebook
Reverse Linked List | LeetCode 206 | Recursive Iterative
มุมมอง 7953 ปีที่แล้ว
Reverse Linked List | LeetCode 206 | Recursive Iterative
Slowest Key | LeetCode 1649 | String | Amazon
มุมมอง 5593 ปีที่แล้ว
Slowest Key | LeetCode 1649 | String | Amazon
Permutations | LeetCode 46 | TopInterview | Google Facebook | Backtracking
มุมมอง 2.7K3 ปีที่แล้ว
Permutations | LeetCode 46 | TopInterview | Google Facebook | Backtracking
Reverse Integer | LeetCode 7 | Top Interview | Facebook Google Apple Amazon
มุมมอง 8K3 ปีที่แล้ว
Reverse Integer | LeetCode 7 | Top Interview | Facebook Google Apple Amazon
Range Addition II | Leetcode 598 | Array Matrix
มุมมอง 2K3 ปีที่แล้ว
Range Addition II | Leetcode 598 | Array Matrix
String to Integer atoi | Top Interview | Facebook Microsoft
มุมมอง 2.1K3 ปีที่แล้ว
String to Integer atoi | Top Interview | Facebook Microsoft
Valid Sudoku | Leetcode 36 | Matirx | HashSet | Top Interview
มุมมอง 8K3 ปีที่แล้ว
Valid Sudoku | Leetcode 36 | Matirx | HashSet | Top Interview
Thank You 5K Special | iPad Pro M1 Chip and Pencil Fast Unboxing
มุมมอง 5263 ปีที่แล้ว
Thank You 5K Special | iPad Pro M1 Chip and Pencil Fast Unboxing
Ferrari 🚘 Maranello Production Process Detail, Ferrari World, Abu Dhabi, UAE 🇦🇪
มุมมอง 5223 ปีที่แล้ว
Ferrari 🚘 Maranello Production Process Detail, Ferrari World, Abu Dhabi, UAE 🇦🇪
Path Sum II | Leetcode 113 | Tree DFS Backtracking | Facebook
มุมมอง 7K3 ปีที่แล้ว
Path Sum II | Leetcode 113 | Tree DFS Backtracking | Facebook
Subsets II | Leetcode 90 | Backtracking | Facebook Amazon Apple
มุมมอง 2.1K3 ปีที่แล้ว
Subsets II | Leetcode 90 | Backtracking | Facebook Amazon Apple
Making A Large Island | Leetcode 827 | Matrix Graph DFS Hard | Facebook Apple
มุมมอง 2.3K3 ปีที่แล้ว
Making A Large Island | Leetcode 827 | Matrix Graph DFS Hard | Facebook Apple
Max Area of Island | Leetcode 695 | Matrix Graph BFS DFS | Google Facebook Amazon
มุมมอง 1.2K3 ปีที่แล้ว
Max Area of Island | Leetcode 695 | Matrix Graph BFS DFS | Google Facebook Amazon
Trapping Rain Water | Leetcode 42 | 3 Solutions | Google Facebook Amazon | Hard
มุมมอง 7683 ปีที่แล้ว
Trapping Rain Water | Leetcode 42 | 3 Solutions | Google Facebook Amazon | Hard
Map Sum Pairs | Leetcode 677 | HashMap and Trie Solution
มุมมอง 6833 ปีที่แล้ว
Map Sum Pairs | Leetcode 677 | HashMap and Trie Solution
01 Matrix | Leetcode 542 | DFS BFS DP | Google Uber Amazon
มุมมอง 10K3 ปีที่แล้ว
01 Matrix | Leetcode 542 | DFS BFS DP | Google Uber Amazon
3Sum Closest | Leetcode 16 | Two Pointer | Google Facebook Amazon
มุมมอง 3.9K3 ปีที่แล้ว
3Sum Closest | Leetcode 16 | Two Pointer | Google Facebook Amazon
Binary Tree Pruning | Leetcode 814 | Binary Tree | Google Amazon
มุมมอง 6823 ปีที่แล้ว
Binary Tree Pruning | Leetcode 814 | Binary Tree | Google Amazon
Partition Array into Disjoint Intervals | Leetcode 915 | Array | Microsoft
มุมมอง 8883 ปีที่แล้ว
Partition Array into Disjoint Intervals | Leetcode 915 | Array | Microsoft
The concept is - n-(x+1) => n - x - 1 = 8 - 4 =>4
wtf I thought it was really hard until I saw this video. Thanks for the explanation
Not understood middle for loop. 😢
bhai, hindi mai kosis krlo
nice solutions you are posting, will bookmark your channel. 😀
Good procedure
code gives and error
wtf! it is so much simple
Awesome solution bro. Love from America
Glad it helped
Thanks for your effort for clear explaination.
Glad it was helpful!
THANK U SOO MUCH!!!
How to did we get this formulae? idealSpots=No.of Chunks - cooling time?
Thank you
You're welcome
worst video of all time . get lost from yt.
Crisp and to the point explanation 🙏🙏, Thank you
Glad it was helpful!
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.
i/2 i didn't understand any one explain it
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.
you took wrong numbers from the list
3 years after , this problem still exists on leetcode
sir your solution expalnation is best thanks uu...
Most welcome
Below average explanation , Thanks
very nice solution keep it going bro
Thanks
Thanks
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
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; } }
Kadane's Algorithm it is, I no where see DP. Please don't mention DP in heading
naresh bhai !!
Thank you sir! Your video was very helpful to me!
Glad it helped
Thank you! Great quick video!
You're welcome!
u just know the solution but u cant explain it
NICE SUPER EXCELLENT MOTIVATED
All the best
NICE SUPER EXCELLENT MOTIVATED
All the best
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.
NICE SUPER EXCELLENT MOTIVATED
Very well explained 👏
Glad it was helpful!
I didn't even understand the problem description. After your initial beautiful explanation, I was able to code it myself! Thanks :)
Great to hear!
wonderful solution sir I was watching 2-3 videos before and none of the approach was understandable and after watching yours I coded myself.
Great to hear!
Damn bro! the explanation was so neat!! keep it up
for the algorithm.Thanks
i"ll be using this algorithm in my assignment, i'll edit my comment if i got A+
yes me too!!! (i'm with him in the group assignment)
Thank you very much.
Welcome 😊
Thank you! Great reasources
Glad it was helpful!
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; } };
great thank you
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.
count = (k-1)*m ?? not understood this code
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
hey How did you come on the formula for chunk ? whats the logic
what a champ, happy I did not have to do this problem on my own ❤🔥