Destroying everyone else in Advent of Code 2021 Day 22

  Рет қаралды 258,925

Neal Wu

Neal Wu

Күн бұрын

I got 1st place on Advent of Code for the first time! Woohoo! adventofcode.com/2021/leaderb...
0:00 Solving part 1
4:50 Solving part 2
10:58 Finishing
13:07 Explanation of part 1
14:40 Explanation of part 2

Пікірлер: 190
@sanjaykhanka11
@sanjaykhanka11 2 жыл бұрын
As a beginner seeing this I feel like a 5 year old kid watching someone solve calculus having no idea what is going on but the clicking sound is pleasing. Lol!!!
@kaart5734
@kaart5734 Жыл бұрын
yep
@dogeedits8098
@dogeedits8098 Жыл бұрын
I have 6 years of experience but i feel no different than you 🤣
@luuquyhop
@luuquyhop Жыл бұрын
Lol same
@duustyy2024
@duustyy2024 Жыл бұрын
the sound is absolutely yikes
@tbcfrankee
@tbcfrankee Жыл бұрын
I watch these videos for no reason other than to humble myself and excite myself for what I can continue to learn.
@aty4282
@aty4282 2 жыл бұрын
Watching this as someone who knows only the basics of scripting feels like pain
@Curl_media
@Curl_media 2 жыл бұрын
rel
@baddev2720
@baddev2720 Жыл бұрын
Ik the pain but its fun
@hwhat
@hwhat 2 жыл бұрын
Thats a new title😂😂😂
@chriskindler10
@chriskindler10 2 жыл бұрын
I love how accurate it is
@fishraider7897
@fishraider7897 2 жыл бұрын
Amazing. Man, it is impressive how you can keep track of index pointer and know by heart it won't go beyond the size of the array
@thibpat
@thibpat 2 жыл бұрын
Congrats on solving it and getting first place! I like that you have a library of code available to speed things up (although your typing is speed is crazy fast already!).
@gunthergunthold6961
@gunthergunthold6961 2 жыл бұрын
Thank you for the frequent video uploads! It is really interesting to see your thought process.
@Kytreeswerving
@Kytreeswerving 2 жыл бұрын
I tied my shoe today. I felt proud.
@sylentifytv
@sylentifytv 2 жыл бұрын
It's cool as the months go on I use to watch some of your vids and I didn't know a single thing now I pick up on obvious variables and loops and how stuff is happening I still overall have no idea what's happening but over the past 4 months of teaching myself coding it's cool to see me understand these videos better with time, hopefully soon enough I will be able to understand it all but amazing work and congrats on first!
@sayeddileri3461
@sayeddileri3461 Жыл бұрын
How we going now champ?
@pchandu1995
@pchandu1995 Жыл бұрын
the code is by-product of your thoughts and solution, 4 months is a lot of time to learn coding, if you are 16+ and took 4 months to learn coding for the first time you are not giving you're all effort. solving and describe your self in code, this will take lot of practice. just learning coding alone is just 3 weeks is a max time.
@mrkatking1
@mrkatking1 Жыл бұрын
@@pchandu1995 dawg what-- it's a continuous learning how to code--same way Technology grows.
@zwjna
@zwjna Жыл бұрын
@@mrkatking1 He's making a distinction between coding and problem solving. When we program, we solve problems, and then we code the solution we found. Problem solving is a continuous learning, that's for sure. So is coding, but it's much more trivial.
@timonbubnic322
@timonbubnic322 6 ай бұрын
@@pchandu1995 he meant programming, not learning syntax...
@LamNguyen-jp5vh
@LamNguyen-jp5vh Жыл бұрын
I was speechless when saw this. Wish you all the best!
@0f0crypto
@0f0crypto 2 жыл бұрын
Coordinate compression ... lol ... what an idea! Much easier than calculating the cuboid intersections and keeping track of which ones to add and which to subtract (i mean the coordinate compression does this kinda automatically)
@crazieeez
@crazieeez Жыл бұрын
I love watching you code in real time. So amazing. The typing is unhuman!
@mind2654
@mind2654 2 жыл бұрын
dude never stop with tehse video names i love it
@csdoit
@csdoit 2 жыл бұрын
you are the one who inspires me the most😀
@peacekeeper3743
@peacekeeper3743 Жыл бұрын
6:29 jesus...this is some pure editing skills !
@Rednas34
@Rednas34 2 жыл бұрын
Insane, just watched from start to end, as a non-programmer. Amazing, keep it up, learning everyday
@krog6473
@krog6473 2 жыл бұрын
*My level of coding :* int isMajor = true; *His level of coding:* vector grid(N, vector(N, vector(N, false)));
@presauced
@presauced 2 жыл бұрын
lmao
@MHGames03
@MHGames03 2 жыл бұрын
Nan
@forthehomies7043
@forthehomies7043 2 жыл бұрын
This is what world class programming looks like
@nickheyer
@nickheyer 2 жыл бұрын
Even though I've been using C for over a year, and I have a decent level understanding of C++, my mind still can't keep up. I believe that is partially due to your intentional (and required for anyone to be competitive) use of pre-existing code for each problem, but mostly it's due to how insanely fast you type :D
@TheOriginalJohnDoe
@TheOriginalJohnDoe 6 ай бұрын
He doesn’t need autocomplete. The autocomplete needs him.
@AAlfuhaide
@AAlfuhaide 2 жыл бұрын
you're also destroying my hope of dreaming to be a programmer
@pontuseriksson2825
@pontuseriksson2825 2 жыл бұрын
This is competetive programming, people usually dont code this fast.
@test5296
@test5296 2 жыл бұрын
No one code that fast in the industry. It's pointless.
@bagzhansadvakassov1093
@bagzhansadvakassov1093 Жыл бұрын
Guys like this are top 1%. Most people seat all day and write simple CRUDs all day.
@MrCoreyTexas
@MrCoreyTexas 11 ай бұрын
was just thinking of the time the journalists told the coal miners to just "learn to code" LOL
@ThatFrigginguy
@ThatFrigginguy 2 жыл бұрын
as someone who has hacked SEVERAL computers on Fallout i can confirm that this is 100 percent accurate
@elmopog7215
@elmopog7215 2 жыл бұрын
Your WPM are out of this world
@gamecode7121
@gamecode7121 2 жыл бұрын
Congrats. Love that title 😁
@japedr
@japedr 2 жыл бұрын
Hey, I have a couple of questions, if you don't mind. First: why the use of min/max in part 1?, I thought the text said to ignore anything outside of the +-50 region. Second, would your part 2 solution still work if some cubes have adjacent sides? I got fed up debugging my crappy cuboid-splicing implementation, and I found your video, and I subscribed milliseconds after. I'm too old and tired to even try the competitive stuff, so I guess I'll experience it second-hand.
@NealWuProgramming
@NealWuProgramming 2 жыл бұрын
For part 1 I was concerned that something outside +/- 50 could end up inside, but looks like that didn't happen. For part 2, should still work.
@japedr
@japedr 2 жыл бұрын
@@NealWuProgramming thanks!
@tomeknaj
@tomeknaj 2 жыл бұрын
I wouldn't even comprehend the whole thing in 11 minutes lol
@IgorSaprykin
@IgorSaprykin Жыл бұрын
Great job!
@turntechgodhead73
@turntechgodhead73 2 жыл бұрын
astounding!!!!
@Hubert4515
@Hubert4515 2 жыл бұрын
im not a newbie and generally get all the things hes doing his speed is super impressive
@NozoOfficial
@NozoOfficial 2 жыл бұрын
Congratulations on destroying everyone :>
@TheArchit1
@TheArchit1 2 жыл бұрын
New title , keep them coming. 😂
@letronix6243
@letronix6243 7 ай бұрын
I am impressed of the speed.
@JJCUBER
@JJCUBER 2 жыл бұрын
Just curious, how fast do you type? It looks like it’s around 200+ WPM (if you weren’t typing a ton of punctuation), but I’m probably way off.
@leilei1129
@leilei1129 2 жыл бұрын
The title really summarize the whole video
@nhivuduc2256
@nhivuduc2256 2 жыл бұрын
How did you set up Sublime Text for compiling the C++ code for competitive programming?
@KT-oz1md
@KT-oz1md 2 жыл бұрын
What a beast👍👍
@geetanshkaul3419
@geetanshkaul3419 2 жыл бұрын
Hey Neal, love your content, would you mind sharing the ubuntu version you're using :)
@lintello8529
@lintello8529 2 жыл бұрын
Love that title.
@chromosome24
@chromosome24 2 жыл бұрын
1:42 I too have that exact facial expression when programming
@nerd6134
@nerd6134 2 жыл бұрын
The confidence title has ……uffff 🔥
@jakubturewicz8148
@jakubturewicz8148 2 жыл бұрын
What is your keyboard?
@Luk3Stein
@Luk3Stein Жыл бұрын
This is how movies show programmers and hackers
@joma1868
@joma1868 2 жыл бұрын
When you sleep do you see the matrix
@6infinity8
@6infinity8 2 жыл бұрын
Oh my god... I'll watch it later tho; I solved it already but I'm still thinking about how I can improve it
@gumaath5888
@gumaath5888 2 жыл бұрын
before: trying facebook hackathon nowdays: DESTROYING EVERYONE ELSE WITH MY CODE thats ma boi
@channegue3755
@channegue3755 2 жыл бұрын
Bro , are you coding bro ? Or playing games ? Super fast 💯🙉
@haxxio
@haxxio 2 жыл бұрын
good job
@zeo-193
@zeo-193 6 ай бұрын
Thanks KZfaq for giving me emotional damage
@hudafarooq3796
@hudafarooq3796 3 ай бұрын
😂😂😂
@hallvardg2247
@hallvardg2247 Жыл бұрын
Not bad, but can u center a div?
@jhem
@jhem 2 жыл бұрын
dude, you're genuis af.
@thalestenebra1247
@thalestenebra1247 2 жыл бұрын
Which is your keyboard?
@CheeseStickzZ
@CheeseStickzZ 2 жыл бұрын
Welcome to another episode of conceived in a library basement
@NP96
@NP96 2 жыл бұрын
oh wow, let's see how he destroys the keyboard. Unbelievable speed :V
@chutanminhfplhcm_k1755
@chutanminhfplhcm_k1755 2 жыл бұрын
I always look forward to the day when you press the wrong button and hit the keyboard
@liammccoart7769
@liammccoart7769 2 жыл бұрын
What keyboard is this man using?
@ssscorpionnn35
@ssscorpionnn35 Жыл бұрын
Are these the codes of the missile written to stop an asteroid that is about to hit the world?
@alessiodvt
@alessiodvt 2 жыл бұрын
there is a video/website where he explain how to setup sublime like him?
@xxxxxGhostBoyxxxxx
@xxxxxGhostBoyxxxxx 2 жыл бұрын
Did anyone realized second and third place missed just by 7 seconds. This shit is intense.
@oktay9784
@oktay9784 2 жыл бұрын
this guy makes me anxious
@Syntax753
@Syntax753 2 жыл бұрын
3 arrays of size 100 inited to 0. Set to 1 all ranges between - 50 and 50. Sum the arrays. No?
@radomyrz989
@radomyrz989 Жыл бұрын
"ok that makes sense".....
@carlossegura403
@carlossegura403 2 жыл бұрын
🔥 🔥
@idcthatyourup
@idcthatyourup Жыл бұрын
insane
@bmwstatusmedia293
@bmwstatusmedia293 Жыл бұрын
Damnn 🔥🔥
@mes2009
@mes2009 2 жыл бұрын
what book you recomnanded?
@ruslanafanasiev63
@ruslanafanasiev63 2 жыл бұрын
what application are you using?
@bilguun-nb8ri
@bilguun-nb8ri 2 жыл бұрын
ty
@johnhammer8668
@johnhammer8668 2 жыл бұрын
2:08 Could some one explain the definition of "A" in line 45. I understand "A" is a pointer to the middle location of array "_A"(ie. location _A + 50 * 50 * 50). But what is the type it is cast to . ie. why is it cast to "(bool (*) [2 * N + 1][2 * N +1])"?
@Syntax753
@Syntax753 2 жыл бұрын
On/off 1/0 treated as boolean as easier to check for truth than integer equality check
@AlbyTheMovieCreator
@AlbyTheMovieCreator 2 жыл бұрын
I know the answer to this
@mohamedayoubneggaz1581
@mohamedayoubneggaz1581 2 жыл бұрын
he just wanted to do: A[-50][-50][-50]. This is negative array indexing. Note that the coordinates are given from -50 to 50. The trick is to use the fact that C store arrays in contiguous spaces so it's possible to do A[-1] which will points to one address before the first element. It's easier to understand for 1d since no 2d recasting shenanigans are needed. In a 1D case, if you want to use an array for -50 to 50: bool original_addressed[101]; bool* negative_addressed = (bool*) &original_addressed[50]; In this example, negative_addressed[0] is like calling original_addressed[50], which is ok. If you do negative_addressed[-50], this will fetch 50 adresses before the head of the pointer which happens to be at: original_addressed[50-50] = original_addressed[0] It's just like considering the array to start at the middle and values are spread left and right. If you don't do so, you need to always add 50 so that -50 becomes 0 and 0 becomes 50 etc. Which might makes logic a bit more fuzzier. For 3D-case, you just need to figure out the starting address. Hope that helped.
@MrCoreyTexas
@MrCoreyTexas 11 ай бұрын
That is one ugly typecast! This is why people don't like C--. Seems like he typed a lot of characters to avoid having to type "+N" 3 times in 3 array index brackets.
@Szyman12
@Szyman12 2 жыл бұрын
how small chance is to start learning with u ?
@sie85
@sie85 2 жыл бұрын
and did it pay your bills?
@alex.k4371
@alex.k4371 2 жыл бұрын
hey when is the next advent of code ?
@invisibleliberty2275
@invisibleliberty2275 2 жыл бұрын
How long have you been ion his?
@joaquinnavarro1675
@joaquinnavarro1675 2 жыл бұрын
Love your chanel, can you please share your color settings??
@rechit947
@rechit947 2 жыл бұрын
can you make programming tutorial for beginner lol, it would be awesome
@marshmellow33
@marshmellow33 7 ай бұрын
incredibly based
@JoniniTheChickenNugget
@JoniniTheChickenNugget 6 ай бұрын
this may be a little stupid but it really never occurred to me that i could just manually strip the input text.... i've been doing all sorts of stripping and storing in vecs etc lmao
@yuanxuan1156
@yuanxuan1156 2 жыл бұрын
Excuse me , can you show me your config of sublime in auto-complete c++ package ?
@Nocturnal_darkness
@Nocturnal_darkness 2 жыл бұрын
That auto complete is done by lsp + clangd
@yuanxuan1156
@yuanxuan1156 2 жыл бұрын
@@Nocturnal_darkness Thank you!!
@rafaelmerinogarcia3769
@rafaelmerinogarcia3769 2 жыл бұрын
please could you explain why adjacent sides of cubes with the state ON are not counted twice?
@Jay-og4yb
@Jay-og4yb 2 жыл бұрын
They are counted twice he just subtracts an iteration
@Elleozito
@Elleozito 2 жыл бұрын
ok so i'm a junior developer and this guys looks kinda younger, and... i mean, ok, i'm a junior but this guy has SOMETHING in his mind that can proccess EVERYTHING sooo FAST, soo please tell me u're not a junior or something like that, please tell me u're a architech/specialist/senior and work for big companies, dude i'm down bad after this video cuz i look at me and i'm saying "yeah ok, maybe i'm slow af and useless? but yeah, probably all my work all over the month could be less than 5 days with this guy working on it"
@bagzhansadvakassov1093
@bagzhansadvakassov1093 Жыл бұрын
Competitive programming is a beast of its own. Nobody codes like this in industry, at least what I've known. This guy does 2 things : knows how to solve complex problems (like at math olympiad), and codes his solutions (loops and some basic stuff) very fast. Yes, this is impressive and takes some training, but it is more of a sport , than real coding.
@lesterdelacruz309
@lesterdelacruz309 Жыл бұрын
He's a monster.
@washedmyhair
@washedmyhair Ай бұрын
Imagine what will happen if he learns vim (namely vim motions)
@Nomorectrax
@Nomorectrax 2 жыл бұрын
What is this programming language and can someone explain what’s goin on
@jacson9708
@jacson9708 2 жыл бұрын
my dude reads that shit for 5 secs "yeah, that's make sense"
@MazaFOfficial
@MazaFOfficial Жыл бұрын
I don't understand anything but his typing skill is so satisfying.
@MrCoreyTexas
@MrCoreyTexas 11 ай бұрын
I don't know how he types stuff like [x][y][z] so fast, my right pinky always misses the correct bracket key
@digitalzoul57
@digitalzoul57 Жыл бұрын
Waa is this your browser ? wow looks like vim
@onefromfuture6913
@onefromfuture6913 2 жыл бұрын
Can we get a camera on your keyboard?
@tor1n448
@tor1n448 2 жыл бұрын
god
@shayrow9480
@shayrow9480 2 жыл бұрын
I wish I was smart enough. Would seem very fun to do.
@gislo
@gislo Жыл бұрын
I wonder what keyboard he uses, anyone knows?
@senor7857
@senor7857 2 жыл бұрын
Can anyone explain the last part sum+= X[x+1] - X[x] * -.... ?????
@jma7379
@jma7379 2 жыл бұрын
what type of PC do you use?
@tommythomson3204
@tommythomson3204 2 жыл бұрын
Brain.
@BackyardniJuan
@BackyardniJuan 2 жыл бұрын
He is very good in mathematics My mathematics is just plus minus 🤣
@bladekiller2766
@bladekiller2766 2 жыл бұрын
Why is this solution so slow in python? Like couple of minutes.
@gorkemsever4690
@gorkemsever4690 2 жыл бұрын
6:00 how can he do this? How can i find this combinations?
@emirs769
@emirs769 2 жыл бұрын
Kanka sublime'da bilmiyorum ama vscode'da alt+left click ile yapabiliyorsun. Sublime multiple cursor diye aratabilirsin.
@devsutong
@devsutong Жыл бұрын
my code more than 5 lines: Segmentation fault, Core dumped!
@deezusstudio2232
@deezusstudio2232 Жыл бұрын
I fell like I'm jusst a kid when I watching u
@siyabongamashilwane7432
@siyabongamashilwane7432 2 жыл бұрын
Ey man, you inspire me very much. How many years have you been coding? Give me a full year, i will challenge you to a coding challenge. Bookmark this comment. I am still a beginner, but i can improve exponentially
@mr.jacobgalesburg1465
@mr.jacobgalesburg1465 Жыл бұрын
Update?
@siyabongamashilwane7432
@siyabongamashilwane7432 Жыл бұрын
@@mr.jacobgalesburg1465 I won a java coding challenge in my school🤙, but there is still more room to improve, I still don't think I'm on your level
@ramanuj_jindal
@ramanuj_jindal 6 ай бұрын
Why it feels like 2x even if it is playing in 1x😬
@kafka-
@kafka- 2 жыл бұрын
hope someone notice this comment: i’m new to linux, can you tell me what distro he is using here?
@freethinkermentality8175
@freethinkermentality8175 2 жыл бұрын
I want to say it’s Ubuntu
@kafka-
@kafka- 2 жыл бұрын
@@freethinkermentality8175 thank you, sir
@lucaslusi3973
@lucaslusi3973 Жыл бұрын
which programming language is he using by the way?
@user-vm7su4rj7f
@user-vm7su4rj7f 3 ай бұрын
C++
I Coded in a Random Programming Language Everyday, For Science
17:17
Low Level Learning
Рет қаралды 69 М.
Winning Google Kickstart Round E 2022!
44:47
Neal Wu
Рет қаралды 109 М.
Must-have gadget for every toilet! 🤩 #gadget
00:27
GiGaZoom
Рет қаралды 11 МЛН
Alat Seru Penolong untuk Mimpi Indah Bayi!
00:31
Let's GLOW! Indonesian
Рет қаралды 9 МЛН
OMG😳 #tiktok #shorts #potapova_blog
00:58
Potapova_blog
Рет қаралды 3,8 МЛН
Eric Wastl - Advent of Code: Behind the Scenes
1:00:48
tretton37
Рет қаралды 10 М.
Can we win Meta Hacker Cup "Qual" Round 2023?
1:36:11
Neal Wu
Рет қаралды 262 М.
Winning Google Kickstart Round C 2020
30:57
William Lin
Рет қаралды 3,9 МЛН
Every Kind of Bridge Explained in 15 Minutes
17:36
Practical Engineering
Рет қаралды 835 М.
Dependency Injection | Prime Reacts
28:34
ThePrimeTime
Рет қаралды 301 М.
Why YOU Should Do Advent of Code
4:34
Theo - t3․gg
Рет қаралды 27 М.
PHP is Wack. (Coding in a Random Language Every Day)
14:41
Low Level Learning
Рет қаралды 57 М.
Winning Google Kickstart Round A 2020 + Facecam
17:10
William Lin
Рет қаралды 9 МЛН
How the Best Hackers Learn Their Craft
42:46
RSA Conference
Рет қаралды 2,5 МЛН
The Untold Story of Scott Wu, CEO of Devin AI
21:27
AI Search
Рет қаралды 379 М.
В России ускорили интернет в 1000 раз
0:18
Короче, новости
Рет қаралды 236 М.
Lid hologram 3d
0:32
LEDG
Рет қаралды 9 МЛН
Main filter..
0:15
CikoYt
Рет қаралды 12 МЛН
Cadiz smart lock official account unlocks the aesthetics of returning home
0:30
Secret Wireless charger 😱 #shorts
0:28
Mr DegrEE
Рет қаралды 2,1 МЛН