Leetcode Solution | Getting Started and 1.0. Two Sum | Javascript | 1/75

  Рет қаралды 6,125

ThinkFWD

ThinkFWD

Күн бұрын

Пікірлер: 16
@meilyn22
@meilyn22 3 жыл бұрын
Boy, I've never seen someone solve a problem that I understand so well. For the first time I could actually predict what code should come next. You are the best. Don't stop. You will blow up soon because you are a great teacher. I have seen many tutorials on solving leetcode, but it's just the do what I do type of solution without walking through their thought process. I could actually understand why you did everything in your code. The pseudocode helped do wonders. I am a beginner, I thought double for loop was for a multidimentional array, but you just taught me sometime brand new. thanks man.
@sachindobal3273
@sachindobal3273 3 жыл бұрын
Great to see you back man
@ThinkFWD
@ThinkFWD 3 жыл бұрын
Thank you! Appreciate the support as well, seeing these comments really means a lot :)
@danielpark399
@danielpark399 3 жыл бұрын
Excited to watch all series. Thank you!
@ThinkFWD
@ThinkFWD 3 жыл бұрын
Thank you!
@mariarazo6977
@mariarazo6977 2 жыл бұрын
I'm so happy I found this video as I begin my Leetcode studying! The tier breakdown will definitely help organize the practice problems. Thank you!
@bida-hammer
@bida-hammer 3 жыл бұрын
Hello, I am a student studying JavaScript in Korea. This video is so helpful. Keep up the good videos.
@ThinkFWD
@ThinkFWD 3 жыл бұрын
Thank you :)
@KyleRosebk
@KyleRosebk 3 жыл бұрын
Thanks for this. looking forward to more videos
@Jamesxoxo89
@Jamesxoxo89 2 жыл бұрын
Great job brother Much appreciated!
@jianzhang9950
@jianzhang9950 3 жыл бұрын
Good work man. 👍
@MabekTravel
@MabekTravel 10 ай бұрын
if you sort the array and look with two pointers, the found indices would be the sorted array's indices. After that we need to find the original indices as well. Isn't that make it very slow?
@georgietrottier9312
@georgietrottier9312 3 жыл бұрын
Hey , that's an awesome explanation! Though, I wanted to ask why we need to sort the array to solve this question with two pointers? Can't we do it without sorting? If no, then why?
@ThinkFWD
@ThinkFWD 3 жыл бұрын
Sorting gives you a natural attribute of higher value on right and lower value on left. Knowing this allows you to make a decision once you take 2 elements and add it together and minus target. You will know if you need to move up from left or right based on the outcome. :).
@hemantpratapsingh236
@hemantpratapsingh236 3 жыл бұрын
Can we do it with two pointers
@ThinkFWD
@ThinkFWD 3 жыл бұрын
Yes you can ;) I wanted to leave that for you to try at the ends
كم بصير عمركم عام ٢٠٢٥😍 #shorts #hasanandnour
00:27
hasan and nour shorts
Рет қаралды 11 МЛН
The Ultimate Sausage Prank! Watch Their Reactions 😂🌭 #Unexpected
00:17
La La Life Shorts
Рет қаралды 8 МЛН
SIZE DOESN’T MATTER @benjaminjiujitsu
00:46
Natan por Aí
Рет қаралды 3,5 МЛН
Building a JSON-RPC Add-On for QuickNode Marketplace
3:48
C Programming Tutorial for Beginners
3:46:13
freeCodeCamp.org
Рет қаралды 14 МЛН
Machine Learning for Everybody - Full Course
3:53:53
freeCodeCamp.org
Рет қаралды 8 МЛН
Leetcode Solution - 1.0 Two Sum | Javascript
14:25
ThinkFWD
Рет қаралды 86 М.
Data Analysis with Python for Excel Users - Full Course
3:57:46
freeCodeCamp.org
Рет қаралды 3,3 МЛН
Complete Dynamic Programming Practice - Noob to Expert | Topic Stream 1
3:50:43
Intro to Java Programming - Course for Absolute Beginners
3:48:25
freeCodeCamp.org
Рет қаралды 3,5 МЛН
Pointers in C / C++ [Full Course]
3:47:23
freeCodeCamp.org
Рет қаралды 4,5 МЛН
كم بصير عمركم عام ٢٠٢٥😍 #shorts #hasanandnour
00:27
hasan and nour shorts
Рет қаралды 11 МЛН