- 101
- 526 598
Andy Gala
United States
Приєднався 13 бер 2014
Leetcode video solutions in Javascript
How to scale a Backend Microservice to 10K RPS
In-depth tech talk on how to scale a Backend Microservice with Andy Gala.
Переглядів: 3 993
Відео
LEETCODE 199 (JAVASCRIPT) | BINARY TREE RIGHT SIDE VIEW
Переглядів 2,9 тис.3 роки тому
Hey everyone. Check out this in-depth solution for leetcode 199.
LEETCODE 285 (JAVASCRIPT) | INORDER SUCCESSOR IN BST
Переглядів 1,4 тис.3 роки тому
Hey everyone. Check out this in-depth solution for leetcode 285.
LEETCODE 236 (JAVASCRIPT) | LOWEST COMMON ANCESTOR OF A BINARY TREE
Переглядів 3,9 тис.3 роки тому
Hey everyone. Check out this in-depth solution for leetcode 236.
LEETCODE 113 (JAVASCRIPT) | PATH SUM II
Переглядів 2,8 тис.3 роки тому
Hey everyone. Check out this in-depth solution for leetcode 113.
LEETCODE 112 (JAVASCRIPT) | PATH SUM
Переглядів 3,2 тис.3 роки тому
Hey everyone. Check out this in-depth solution for leetcode 112.
LEETCODE 429 (JAVASCRIPT) | N-ARY TREE LEVEL ORDER TRAVERSAL
Переглядів 2,4 тис.3 роки тому
Hey everyone. Check out this in-depth solution for leetcode 429.
LEETCODE 701 (JAVASCRIPT) | INSERT INTO A BINARY SEARCH TREE
Переглядів 1,6 тис.3 роки тому
Hey everyone. Check out this in-depth solution for leetcode 701.
LEETCODE 543 (JAVASCRIPT) | DIAMETER OF BINARY TREE
Переглядів 3,5 тис.3 роки тому
Hey everyone. Check out this in-depth solution for leetcode 543.
LEETCODE 108 (JAVASCRIPT) | CONVERT SORTED ARRAY TO BINARY SEARCH TREE
Переглядів 4,7 тис.3 роки тому
Hey everyone. Check out this in-depth solution for leetcode 108.
LEETCODE 250 (JAVASCRIPT) | COUNT UNIVALUE SUBTREES
Переглядів 2,1 тис.3 роки тому
Hey everyone. Check out this in-depth solution for leetcode 250.
LEETCODE 105 (JAVASCRIPT) | CONSTRUCT BINARY TREE FROM PREORDER AND INORDER TRAVERSAL
Переглядів 3,2 тис.3 роки тому
Hey everyone. Check out this in-depth solution for leetcode 105.
LEETCODE 103 (JAVASCRIPT) | BINARY TREE ZIGZAG LEVEL ORDER TRAVERSAL
Переглядів 2 тис.3 роки тому
Hey everyone. Check out this in-depth solution for leetcode 103.
LEETCODE 107 (JAVASCRIPT) | BINARY TREE LEVEL ORDER TRAVERSAL II
Переглядів 1,6 тис.3 роки тому
Hey everyone. Check out this in-depth solution for leetcode 107.
LEETCODE 144 (JAVASCRIPT) | BINARY TREE PREORDER TRAVERSAL
Переглядів 4,6 тис.3 роки тому
Hey everyone. Check out this in-depth solution for leetcode 144.
LEETCODE 102 (JAVASCRIPT) | BINARY TREE LEVEL ORDER TRAVERSAL
Переглядів 7 тис.3 роки тому
LEETCODE 102 (JAVASCRIPT) | BINARY TREE LEVEL ORDER TRAVERSAL
LEETCODE 784 (JAVASCRIPT) | LETTER CASE PERMUTATION
Переглядів 8 тис.3 роки тому
LEETCODE 784 (JAVASCRIPT) | LETTER CASE PERMUTATION
LEETCODE 17 (JAVASCRIPT) | LETTER COMBINATIONS OF A PHONE NUMBER
Переглядів 5 тис.3 роки тому
LEETCODE 17 (JAVASCRIPT) | LETTER COMBINATIONS OF A PHONE NUMBER
LEETCODE 51 & 52 (JAVASCRIPT) | N QUEENS I & II
Переглядів 3,1 тис.3 роки тому
LEETCODE 51 & 52 (JAVASCRIPT) | N QUEENS I & II
LEETCODE 47 (JAVASCRIPT) | PERMUTATIONS II
Переглядів 3,2 тис.3 роки тому
LEETCODE 47 (JAVASCRIPT) | PERMUTATIONS II
LEETCODE 131 (JAVASCRIPT) | PALINDROME PARTITIONING I
Переглядів 2,1 тис.3 роки тому
LEETCODE 131 (JAVASCRIPT) | PALINDROME PARTITIONING I
LEETCODE 46 (JAVASCRIPT) | PERMUTATIONS I
Переглядів 13 тис.3 роки тому
LEETCODE 46 (JAVASCRIPT) | PERMUTATIONS I
LEETCODE 78 (JAVASCRIPT) | SUBSETS I
Переглядів 7 тис.3 роки тому
LEETCODE 78 (JAVASCRIPT) | SUBSETS I
LEETCODE 494 (JAVASCRIPT) | TARGET SUM
Переглядів 1,9 тис.3 роки тому
LEETCODE 494 (JAVASCRIPT) | TARGET SUM
LEETCODE 22 (JAVASCRIPT) | GENERATE PARENTHESES
Переглядів 4,8 тис.3 роки тому
LEETCODE 22 (JAVASCRIPT) | GENERATE PARENTHESES
LEETCODE 90 (JAVASCRIPT) | SUBSETS II
Переглядів 2,9 тис.3 роки тому
LEETCODE 90 (JAVASCRIPT) | SUBSETS II
LEETCODE 40 (JAVASCRIPT) | COMBINATION SUM II
Переглядів 3,1 тис.3 роки тому
LEETCODE 40 (JAVASCRIPT) | COMBINATION SUM II
LEETCODE 216 (JAVASCRIPT) | COMBINATION SUM III
Переглядів 3 тис.3 роки тому
LEETCODE 216 (JAVASCRIPT) | COMBINATION SUM III
LEETCODE 39 (JAVASCRIPT) | COMBINATION SUM I
Переглядів 4,9 тис.3 роки тому
LEETCODE 39 (JAVASCRIPT) | COMBINATION SUM I
LEETCODE 509 (JAVASCRIPT) | FIBONACCI NUMBER
Переглядів 2,3 тис.3 роки тому
LEETCODE 509 (JAVASCRIPT) | FIBONACCI NUMBER
Great explanation. I still wonder why that Pos was given so much importance there in the the problem?
Amazing explanation, thank you.
which whiteboard tool do you use?
❤
Got the logic, thanks 👍
I think recursively is easier
I practiced it more than 10 times now I can solve in a heartbeat in different ways
how can leetcode regard this as easy
Great video!!!
unreal explanation! thank you for the clarity!!
Really appreciated, this channel is a treasure for everyone willing to master problem solving! I hope U back soon and continue teaching us these amazing techniques
appreciated! actually it's amazing content, that's insane .. thx a lot for your effort
Small request, please use night mode, otherwise it's difficult to read
Simply checking if the value at buy index is greater than value at sell index seems a bit more intuitive to me, as the goal is to get the high sell value to the right of the buy index. var maxProfit = function(prices) { let buy = prices.length - 1; let sell = prices.length - 1; let profit = 0; while(buy > 0 && sell > 0){ if(prices[buy] > prices[sell]){ sell = buy; } else { buy--; profit = Math.max(profit, prices[sell] - prices[buy]); } } return profit; };
can't you also set negative numbers at the index, and if you come across a negative value, that's the dupe?
The second swap throws me this error: [nums[i], nums[j]] = [nums[j], nums[i]] ^ TypeError: Cannot set properties of undefined (setting '3')
Why is it 9? Isnt that the max left and right + 1? then isnt that shoud be 6?
Thankyou so much for creating these videos, these are so helpful
Hi Andy, Plz make more in js, you explaination is very good and easily understandable
Time Limit Exceeded
Awesome, thank you
Using a string to check parenthesis pairs is very clever. I would have jumped straight to making a hash map without considering simpler options.
Andy, what's the book you recommend to learn all the graphs concepts you mention? See, I have the issue that I have plenty of experience with building distributed services, serverless, APIs, databatases, infrastructure, etc, etc, but, in interviews I usually always fail because they request these types of algorithms problems that I just don't know how to traverse and that puts me down. I'm a self taught person, I didn't graduate as a software engineer as others might have so I didn't see graphs theory of anything of that at a university, just learned what the market was demanding for a job, and it feels bad that I cannot pass interviews because of these.
Andy, what's the book you recommend to learn all the graphs concepts you mention? See, I have the issue that I have plenty of experience with building distributed services, serverless, APIs, databatases, infrastructure, etc, etc, but, in interviews I usually always fail because they request these types of algorithms problems that I just don't know how to traverse and that puts me down. I'm a self taught person, I didn't graduate as a software engineer as others might have so I didn't see graphs theory of anything of that at a university, just learned what the market was demanding for a job, and it feels bad that I cannot pass interviews because of these.
Thanks
what is the whiteboard app name which you were using to draw the dfs tree?
thanks for you,your solution deserves much more elegant
You make things extremely overcomplicated for literally no reason man. For example, sofar should be named as maxSum or currentSum etc. If you can't even name something properly then it is only going to confuse everyone. For the max, you could have written maxAverage, finalAverage, etc. Nobody is going to know what you are naming what for what. Learn basic naming sense dude.
I was redoing this problem, and yeah it is a little overcomplicated.
no need to sort the input array
some people using recursion or while(true) approach and yours has prev. which one is better?
The best solution I've ever seen; it's better than AI answers. Great explanation
Easiest medium leetcode exercise I have seen so far, not sure if they forgot to add some test cases?, it passes even with just this: const findPeakElement = nums => nums.indexOf(Math.max(...nums));
This is a dope solution. How do you even think of that
can you show me how to also do it with hash or sets please.
best teacher for leetcode in youtube
Thanks so much
Thank you very much
Simple solution: /** * @param {number[]} nums * @param {number} k * @return {void} Do not return anything, modify nums in-place instead. */ var rotate = function (nums, k) { k = k % nums.length; nums = nums.slice(-k).concat(nums.slice(0, -k)); };
Please continue the series sir more leetcode solution please
I wish the helper functions would've been explained more, you just built upon the fact that everyone has read the book.
I understands codes more when it's been coded than explained on paper or board. You explained it very well, and it's actually easy to comprehend. Thank you!
thats was soo poorly explained
the audio is so low I can't hear you. but great job!
left + (right - left) === right
great explanation
Man, thank you so much. I am beginning to get pretty comfortable with linked lists, but this problem turned my brain into mush and I finally decided it was better to just see it demonstrated and then use that knowledge in future problems. Your explanation was so clear and concise, I finally actually understand this fully.
Best vid I found today for understanding quick sort. Thank you!
I hardly heard your voice, I don't know if it is from your microphone or you are not speaking louder...
hello, /** * @param {string} s * @return {boolean} */ var isValid = function(s) { let input=s.split(""); let count=0; for(let i=0;i<input.length;i++) { for(let j=i+1;j<input.length;j++) { if(input[i]=='('&& input[j]==')' || input[i]=='[' && input[j]==']' || input[i]=='{'&& input[j]=='}') { count++; } if( input[i]=='(' && input[j+1]==')' || input[i]=='{' && input[j+1]=='}' ||input[i]=='[' && input[j+1]==']') { return false; } } } if((count*2)==input.length) { return true; } else { return false; } };
why it is not running.....................
thank you so much for this video!!!! helps me a lot