Тёмный
Chuck's Resume
Chuck's Resume
Chuck's Resume
Подписаться
Chuck's Resume:

Want to learn JavaScript? Then this is the channel for you! I will be going over Algorithms, Computer Science, whiteboard interview questions, JavaScript syntax, and MORE~!!
Depth First Search JavaScript
9:15
14 дней назад
Binary Search Using Recursion JavaScript
5:51
4 месяца назад
Permutations JavaScript
10:17
4 месяца назад
Modulo Explained
12:12
4 месяца назад
Number to Binary JavaScript
6:38
10 месяцев назад
Leetcode 179 -  Largest Number JavaScript
8:55
10 месяцев назад
Leetcode 7 - Reverse Integer JavaScript
22:20
10 месяцев назад
Leetcode 169 - Majority Element JavaScript
19:12
10 месяцев назад
Leetcode 189 - Rotate Array JavaScript
21:54
10 месяцев назад
Happy Number JavaScript
9:23
10 месяцев назад
Bingo Sort JavaScript
9:17
10 месяцев назад
Kadane's Algorithm JavaScript
8:24
10 месяцев назад
Caesar Cipher JavaScript
9:22
10 месяцев назад
Gnome Sort JavaScript
13:02
11 месяцев назад
Shell Sort JavaScript
13:10
11 месяцев назад
Selection Sort JavaScript
10:33
11 месяцев назад
Insertion Sort  JavaScript
11:27
11 месяцев назад
Bogo Sort JavaScript
13:23
11 месяцев назад
Counting Sort JavaScript
12:14
11 месяцев назад
Two Sum JavaScript
12:53
11 месяцев назад
Cocktail Sort JavaScript
17:10
11 месяцев назад
Bubble Sort JavaScript
19:39
11 месяцев назад
Sieve of Eratosthenes JavaScript
15:36
11 месяцев назад
Комментарии
6 часов назад
thanks, budy 🤙
@chucksresume7203
@chucksresume7203 6 часов назад
Glad you found it valuable!
6 часов назад
​ @chucksresume7203 The way you explain is pretty clean. I still had some issues with the logic. I was debugging and noticed the pop was activated after the function got called. For example, once it completes the combinations for "a," it will activate three times to delete all the values, and if there are still combinations for a, it will activate two times. That is kind of complex to understand. I will create my own function tomorrow based on your code to see if I can get it better. Thanks
@chucksresume7203
@chucksresume7203 5 часов назад
That sounds like a good strategy. Remember there's 'more than one way to skin a cat'. Use my code as a guide if you need to, but your solution might be better!
@pradeep7573
@pradeep7573 5 дней назад
One of the best explanation I have seen. This video MUST DESRVE more likes, I subscribed your channel. Thanks a lot. Awesome work.
@chucksresume7203
@chucksresume7203 5 дней назад
@pradeep7573 Thank you. Glad you found it valuable!
@Nodsaibot
@Nodsaibot 11 дней назад
000000111111100000 000000110000000000 000000110000000000 000000111111111000 000000000000011000 000000000000011000 000000111111111000
@aorih1077
@aorih1077 11 дней назад
Why the splice solution doesn't work if we iterates the array from index 0 ? Thanks for the solution!
@chucksresume7203
@chucksresume7203 11 дней назад
Let's say we have an array [1,1,1,2,3,4] and set i=0 and increment i each iteration of the for loop. When i=1 we find that we have duplicates on nums[i] and nums[i-1] therefore we perform splice(i,1). Now our array looks like this: [1,1,2,3,4]. i is now 2. Because i=2 we will never find the duplicate 1's that still remain at index 0 and index 1. Technically, you could probably iterate through the for loop and use a negative splice index, but that's confusing so I preferred starting at the end and working down. Thus, i=nums.length-1 initially. That way splice won't mess with my variable i.
@aorih1077
@aorih1077 3 дня назад
@@chucksresume7203 thank you so much for the explanation! I think now it's clear :)
@HdjdHdisi
@HdjdHdisi 12 дней назад
Thanks bro
@chucksresume7203
@chucksresume7203 12 дней назад
@@HdjdHdisi Glad you enjoyed the video!
@yettikiran145
@yettikiran145 13 дней назад
Let's submit it bro❤❤ we will see the optimization
@chucksresume7203
@chucksresume7203 13 дней назад
It beats 79%, next video I'll make sure to submit it. Thanks for the feedback!
@bairunagarajuindian8509
@bairunagarajuindian8509 13 дней назад
Good one but slower explanation bro 8
@chucksresume7203
@chucksresume7203 13 дней назад
@bairunagarajuindian8509 Noted. It felt a little redundant, so I didn't want to be too slow. I will keep that in mind next time. Thanks for the feedback!
@todaynews7869
@todaynews7869 Месяц назад
thats cool explanation man 👍
@chucksresume7203
@chucksresume7203 Месяц назад
Thank you. Glad you liked it!
@SK-yb7bx
@SK-yb7bx 2 месяца назад
Brilliant answer. It's easy because you understand javascript well.
@chucksresume7203
@chucksresume7203 2 месяца назад
Glad you found it valuable!
@ParkourRhett
@ParkourRhett 4 месяца назад
W video. W explanation. Thanks!
@chucksresume7203
@chucksresume7203 4 месяца назад
Thank you. Glad you found it valuable!
@user-hd3pz2ow1b
@user-hd3pz2ow1b 4 месяца назад
cool
@jefdewitt6662
@jefdewitt6662 5 месяцев назад
One of the better explanations I've seen. Awesome work, man!
@chucksresume7203
@chucksresume7203 5 месяцев назад
Thank you for the kind words!
@JustinBishop
@JustinBishop 5 месяцев назад
Awesome explaination bro
@oskariloytynoja4366
@oskariloytynoja4366 5 месяцев назад
On line 35 you should multiply with gridCols and not gridRows. It happens to work in your example because gridRows and gridCols are both 10.
@chucksresume7203
@chucksresume7203 5 месяцев назад
Good catch!!
@valikonen
@valikonen 7 месяцев назад
Good job, thanks!
@GOPI-gf3fp
@GOPI-gf3fp 7 месяцев назад
the explanation is OG bro please create more videos plesase
@terrance_corley
@terrance_corley 7 месяцев назад
Excellent demonstration, thank you!
@chucksresume7203
@chucksresume7203 7 месяцев назад
Glad you found it valuable!
@marcelastafe7123
@marcelastafe7123 8 месяцев назад
The best video. Thanks.
@earlgrey8611
@earlgrey8611 8 месяцев назад
Do you have any insight on how to make this work with any number of functions? I'm thinking of converting the arguments object to an array of functions, and then looping through them starting from the last one, getting its return value, and then passing it down the chain along with the next output.
@ChandrashekarCN
@ChandrashekarCN 9 месяцев назад
💖💖💖💖
@ChandrashekarCN
@ChandrashekarCN 9 месяцев назад
💖💖💖💖
@vyomyadav6497
@vyomyadav6497 10 месяцев назад
I didn't understand that saving of 2 for later, can you please clarify it further?
@chucksresume7203
@chucksresume7203 10 месяцев назад
2 becomes our comparison value when i=4. We compare 2 to 5 and determine a swap needs to be made. Therefore, we change array[4] to 5, while holding on to the value of 2 in our variable 'current'. Then we look through our array because j>=0, and see that 4 is also less than 2 so another swap needs to be made. Our array now looks like this: [4,1,5,3,5] Notice how the value of 2 has disappeared, yet we retain it's value by storing it in a variable called 'current'. We now update the array for the swap comparing 2 and 4. Our array now looks like this: [4,1,4,3,5]. Our loop is now finished doing comparisons and we are 'kicked out'. We have one more swap to perform on the outside of our loop: arr[j] = current. Now our array looks like this: [2,1,4,3,5] If this seems confusing that's normal. Make sure you get a good understanding of Insertion Sort and this will be easier to understand. Shell Sort is like Insertion Sort on steroids.
@vyomyadav6497
@vyomyadav6497 10 месяцев назад
@chucksresume7203 Ah got it, it's like insertion sort on gap elements, thanks a ton Chuck!
@chucksresume7203
@chucksresume7203 10 месяцев назад
@vyomyadav6497 yes precisely!!
@theunknown2090
@theunknown2090 10 месяцев назад
Another solution since the range is given. 1. Calculate sum from 1 to n, call this total_sum 2. Calculate xor sum of array (xor of same num is 0), xor_sum 3. Dup_Num = Total_sum-xor_sum
@francksgenlecroyant
@francksgenlecroyant 10 месяцев назад
Hey Chuck, just subscribed, do more of these leetcodes please, it's helping a lot.
@chucksresume7203
@chucksresume7203 10 месяцев назад
Sure thing Frank 👍
@angrybird29
@angrybird29 10 месяцев назад
super valuable
@chucksresume7203
@chucksresume7203 10 месяцев назад
Glad you liked it!!
@angrybird29
@angrybird29 10 месяцев назад
Your channel is a wealth of information for a newbie like me who are getting into tech programming, definitely a new sub!
@chucksresume7203
@chucksresume7203 10 месяцев назад
Glad I can be of help!! Keep working hard 💪
@keshamix_
@keshamix_ 11 месяцев назад
Good stuff, man. Great explanation
@chucksresume7203
@chucksresume7203 11 месяцев назад
Glad you found it helpful!
@Bullet-Sakamoto
@Bullet-Sakamoto 11 месяцев назад
Thank you👍
@chucksresume7203
@chucksresume7203 11 месяцев назад
Glad you liked the video!!
@dirimenjutl
@dirimenjutl 11 месяцев назад
I needed it, thanks
@chucksresume7203
@chucksresume7203 11 месяцев назад
Glad you liked it!!
@Pepsiaddicto
@Pepsiaddicto 11 месяцев назад
Great content, gotta upgrade the mic though.
@chucksresume7203
@chucksresume7203 11 месяцев назад
Thanks for the feedback!!
@garrettross931
@garrettross931 11 месяцев назад
We shoulda started that MMA podcast! We'da been rich by now, dammmmmmmit! 🤣
@chucksresume7203
@chucksresume7203 11 месяцев назад
Stephan A. Smith pretending to know MMA 🤣🤣🤣
@garrettross931
@garrettross931 11 месяцев назад
No lie! We couldn't left all this coding bullshit behind already! Ah well, it's not that bad a lot. Hope you good, bro! @@chucksresume7203
@ArmaanM123
@ArmaanM123 11 месяцев назад
nice vid though i wonder why you didnt use a object oriented way using: function Tile(x,y,width,height){ this.x = x; this.y = y; this.width = width; this.height = height; this.arr = [...]; this.draw = function(){ loopThroughtArr(this.arr); } }
@chucksresume7203
@chucksresume7203 11 месяцев назад
Nice catch!!
@MaryGouge
@MaryGouge Год назад
Can you explain how to count how many "Fizz", "Buzz", and "Fizzbuzz" without printing 1-100 please?
@chucksresume7203
@chucksresume7203 Год назад
You could declare variables with names like fizzCount, BuzzCount, fizzBuzzCount. Use an if else conditional statement to track the occurrence of each within the for loop. For example: let fizzCount = 0, BuzzCount = 0, fizzBuzzCount = 0; if(i % 3 === 0 && i % 5 === 0) { console.log("fizzBuzz"); fizzBuzzCount = fizzBuzzCount + 1; } else if (i % 5 === 0) { console.log('Buzz'); BuzzCount = BuzzCount + 1; } else if (i % 3 === 0) { console.log('fizz'); fizzCount = fizzCount + 1; } Hope this helps!
@MaryGouge
@MaryGouge Год назад
@@chucksresume7203 Thank you so much!
@BR-jw7pm
@BR-jw7pm Год назад
question: using your tutorials plus my knowledge of coding and old game design, I devised a means of having multiple canvases in a single Div (that way I could create several smaller maps instead of one giant one). Then, having each canvas element in an array, used a For Loop so that each would fill in with the correct sprites which worked swimmingly! However, the same did not work for collision detection; for the record, it created the collision for each canvas but overlaid them all on the first canvas instead of each one individually. so I was wondering if you had any idea how I could get the collision drawn on each individual canvas? I realize that ctx is set to the first canvas but don't know how to apply it to all 3 canvases. If you had any ideas, I would be grateful!
@chucksresume7203
@chucksresume7203 Год назад
Wow that's awesome!! Unfortunately the answer is you need to make ctx for each canvas. Frank's Laboratory does a great Frogger video that utilizes this logic. Check out this video: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-GXvNEwu9cgM.html @8:00 Frank works with multiple ctx and canvas elements. Hope this helps!!
@BR-jw7pm
@BR-jw7pm Год назад
@@chucksresume7203 thank you very much! Will check that video!
@BR-jw7pm
@BR-jw7pm 11 месяцев назад
@@chucksresume7203 I've figured out that instead of using multiple canvases in a grid, I can just use one giant canvas and combiner multiple smaller map arrays into a larger one; in this case, I created 2D arrays for each map square, then organized each map into one 2D array called overworld. however, each map array is just getting drawn over each other instead of side by side as organized in the overworld array. Do you know of any means to move to a different point of a larger canvas to draw each map array? (IE: MapA1 is in the top left corner, MapA4 is in the top right). thank you for your time
@saltech2024
@saltech2024 Год назад
Nice tutorial Please can i get more examples of JS Abstraction? Can i use if(this.prototype === "Car")?
@amwostan6505
@amwostan6505 Год назад
This was really useful. Thanks a lot.😁
@chucksresume7203
@chucksresume7203 Год назад
Glad you liked it!
@oneManDev
@oneManDev Год назад
Great videos you have man it's so sad to see talented people being so underrated. 😢
@jethan1294
@jethan1294 Год назад
I followed both of your tutorials and now I've made my first tile map! Your tutorial really helped because I ran into problems with other ones I tried.
@Bullet-Sakamoto
@Bullet-Sakamoto Год назад
Thank you for taking time to make the video.
@chucksresume7203
@chucksresume7203 Год назад
Glad you liked it!
@Bullet-Sakamoto
@Bullet-Sakamoto Год назад
Thanks🤓.
@AndrewBone
@AndrewBone Год назад
2d arrays would make this easier
@chrisnguyen180
@chrisnguyen180 Год назад
Great video! Although I would like to see more advance concepts/terms throw into the mix. Such as functional/OOL style programming, elaborating on methods you used (e.g you used anonymous functions), if the "window.requestAnimationFrame" is asynchronous or not... Another tip when you were copy/pasting the map rows, instead use "Alt"+"Shift"+Down ... Keep the vids coming, chuck!
@JesusEscalonaABC
@JesusEscalonaABC Год назад
easiest solution I found, thanks sir
@chucksresume7203
@chucksresume7203 Год назад
Glad you liked it! Thank you!
@josephcieplak8920
@josephcieplak8920 Год назад
Are you thinking about building a RPG game something like pokemon on canvas?
@chucksresume7203
@chucksresume7203 Год назад
There's an old DOS game called "Castle of the Winds" that was pretty cool. It was a tile based Rogue RPG without audio lol, but it still played well! Would love to make something like that.
@RajveerSingh-qr1fj
@RajveerSingh-qr1fj Год назад
Can i get your contact... ? I want to talk to you