These Problems Made Me A Great Dev

  Рет қаралды 61,269

Theo - t3․gg

Theo - t3․gg

Күн бұрын

GO SIGN UP FOR ADVENT OF CODE RIGHT NOW adventofcode.com/
I LOVE YOU MIR THANK YOU FOR MAKING THIS EDIT SO ABSURDLY FAST
Link to stream this was from: • STREAM VOD: I WAS WRON...
ALL MY VIDEOS ARE POSTED EARLY ON PATREON / t3dotgg
Everything else (Twitch, Twitter, Discord & my blog): t3.gg/links

Пікірлер: 87
@wiztek1197
@wiztek1197 2 жыл бұрын
Still cant over the guy that did last years AoC in PostgreSQL
@metalheader1
@metalheader1 2 жыл бұрын
wait, what now? lol
@jl789nz
@jl789nz 2 жыл бұрын
Just seen someone doing it in excel as well.
@flyingsl0ths961
@flyingsl0ths961 2 жыл бұрын
this is gonna be my first time participating in advent of code, pretty excited 😃
@jacoblockwood4034
@jacoblockwood4034 2 жыл бұрын
Same here! Day 1 was pretty easy thankfully
@samuelgunter
@samuelgunter 2 жыл бұрын
For part B, wouldn't this work and be simpler to implement: declare a variable "count" start iteration through all values of the array if bracket is ")", count -= 1 else count += 1 if count == -1, return index (plus one, since 1-based index) using a stack just seems to complicate the process
@ponirvea
@ponirvea 2 жыл бұрын
the stack is the textbook, most general solution to bracket matching algorithms, he probably came to that solution by googling/researching the problem
@mrsherman3103
@mrsherman3103 2 жыл бұрын
this is exactly what I thought. I would love to know the reason for his solution
@samuelgunter
@samuelgunter 2 жыл бұрын
@@ponirvea I give that a 0.000000000000000000000000000000000000000000000000000000000000000000000374% chance that that's what happened, because he almost certainly knew about this algorithm already. he used that solution either because of the pressures of being live (this was an old challenge, so points or speed didnt matter for a leaderboard) or because generally overthinks/overengineers things (or a combination of the both)
@t3dotgg
@t3dotgg 2 жыл бұрын
Yeah this is faster Usually when there are "matches" in problems like this, the next part is more complex matching patterns. I've used this "chemical reduction" problem for interviews for years and it has caused slight brain rot adventofcode.com/2018/day/5
@Kay8B
@Kay8B 2 жыл бұрын
This is what I thought of... I'm glad I had a decent approach, usually suck at these
@Bobbias
@Bobbias 2 жыл бұрын
Always happy to see advent getting attention. They have some really great problems.
@aaaaanh
@aaaaanh 2 жыл бұрын
Advent should just crown Copilot their MVP already 😂
@parkourbee2
@parkourbee2 2 жыл бұрын
This is gonna kill my sleep schedule being on east coast, but worth it
@chawakornchaichanawirote1196
@chawakornchaichanawirote1196 2 жыл бұрын
Thanks for reminding me about AoC!
@DMSBrian24
@DMSBrian24 Жыл бұрын
The timezone stuff sucks, for us in Europe this is early morning. So we pretty much can't compete if we have a job.
@xyangst
@xyangst Жыл бұрын
6 am is good for me xd
@Frankolious
@Frankolious 2 жыл бұрын
DUDE , the bass drop at 5:10!!!! YES MAN it even got me dancing haha
@abag777
@abag777 2 жыл бұрын
I'm doing advent of code for the first time this year. I didn't realize then there was supposed to be time pressure. I just did the past few days challenges this morning because I put them off. Oh well, I've managed to get some good coder reuse going for some of the problems.
@DennisPing
@DennisPing 2 жыл бұрын
I dislike Leetcode, but I remembered the related Leetcode question for the parenthesis problem. I also remembered the related Leetcode question for this year's Day 1. Both were easy level, but useful for students to study.
@baka_baca
@baka_baca 2 жыл бұрын
Alright this sounds like a great way to brush up and level up on some skills!
@mariansam_was_taken
@mariansam_was_taken 2 жыл бұрын
Theo: "if you're a sub" Me: "you sure i am"
@mariansam_was_taken
@mariansam_was_taken 2 жыл бұрын
For the slower ones: the sub here does not mean subscriber
@philmarlin6204
@philmarlin6204 2 жыл бұрын
inb4 the Rustaceans go into hyperdrive for 30 days
@anasouardini
@anasouardini 2 жыл бұрын
depending on how B is different from A... A's scalability score changes. which make me think that there is no point. you can try to make A as generic as possible but no matter what you cannot guarantee that it would make B easier to code. I think that AOC is not much different than LC.
@MilanRodd
@MilanRodd 2 жыл бұрын
That is awesome! Thnx 4 sharing :)
@goosechaser
@goosechaser 2 жыл бұрын
Thank you for this video
@Leto2ndAtreides
@Leto2ndAtreides 2 жыл бұрын
I'd have run through the string with a for loop and done +1 floor for ( and -1 for ), until I hit -1 on floor.
@TheMaDNiaC
@TheMaDNiaC 2 жыл бұрын
What about something like this, instead of a while loop: let currentFloor = 0 let result = 0 for (let i = 0; i < brackets.length; i++) { const char = brackets[i] if (char === "(") currentFloor-- else if (char === ")") currentFloor++ if (currentFloor === -1) { result = i break } }
@PunkSage
@PunkSage 2 жыл бұрын
Yeah, this is the clear solution. Unfortunately Theo is not a good at solving these problems. He could've probably failed if it was his live-coding session during the interview. Anyways we still got a decent knowledge about frontend technologies.
@Daniel_WR_Hart
@Daniel_WR_Hart 2 жыл бұрын
"It's not about who's programming language is the best" *disagrees in APL/J/BQN*
@NiceTwisT
@NiceTwisT 2 жыл бұрын
im doing this right now after a night shift to distress👌
@QazJer
@QazJer 2 жыл бұрын
can't sleep so I just completed the first day's challenges! pretty fun
@roberthogan7149
@roberthogan7149 2 жыл бұрын
I love to see fellow deadmau5 fans.
@fnfal113
@fnfal113 2 жыл бұрын
copilot really solved the problem
@thepaulcraft957
@thepaulcraft957 2 жыл бұрын
3:35 typical lisp codebase
@JackstaGamez
@JackstaGamez 2 жыл бұрын
new theo vid W
@Zzznmop
@Zzznmop 2 жыл бұрын
PepeLaugh dis gonna be good!
@rammehar5531
@rammehar5531 2 жыл бұрын
May you pls explain ,What ares the requirement for site like leet-code e.g. handling compilation for multiple users and run test against the solution?
@palaaaurinkoon
@palaaaurinkoon 2 жыл бұрын
There are a few good systems design videos on this: kzbin.info/www/bejne/np7Sontqba-JZpI
@samhadi7972
@samhadi7972 2 жыл бұрын
They most likely use docker with networking disabled and other limits to make it more safe to run on their servers
@perc-ai
@perc-ai 2 жыл бұрын
Where are all my rustaceans at??
@mrlectus
@mrlectus Жыл бұрын
Their questions R clearer than leetcode
@OldKing11100
@OldKing11100 2 жыл бұрын
Roger Roger.
@moinbagban87
@moinbagban87 Жыл бұрын
Vs code theme?
@The_Nova_Glow
@The_Nova_Glow Жыл бұрын
i stopped watching after he let copilot just carry him
@invinciblemode
@invinciblemode 2 жыл бұрын
Such a great dev lmao
@tomaszchmielnicki8676
@tomaszchmielnicki8676 2 жыл бұрын
Why not do it the functional way?
@josephsintum1292
@josephsintum1292 2 жыл бұрын
In excel??
@Richard-sp3ul
@Richard-sp3ul 2 жыл бұрын
@theo 🤘🤘🤘
@typedwaves
@typedwaves 2 жыл бұрын
nice
@xrehpicx
@xrehpicx 2 жыл бұрын
Wt is that vscode theme
@d2vin
@d2vin 2 жыл бұрын
Music used?
@simp-
@simp- 2 жыл бұрын
how you get that smart autocompletes?
@rauldragu9447
@rauldragu9447 2 жыл бұрын
Its called github copilot and it costs 10$/month
@abhishek.rathore
@abhishek.rathore 2 жыл бұрын
@@rauldragu9447 unless you are a student.. For them its free
@natescode
@natescode 2 жыл бұрын
tabnine has a free tier
@simp-
@simp- 2 жыл бұрын
@@rauldragu9447 Oh I completly forgot about that piece of software, thanks
@simp-
@simp- 2 жыл бұрын
@@abhishek.rathore ohhh thats great for me then, thanks
@ChillAutos
@ChillAutos 2 жыл бұрын
Seems kinda weird if someone in a different timezone who's sleeping can never compete with it.
@SuperSaiyan-tr7fz
@SuperSaiyan-tr7fz 2 жыл бұрын
Its is good and I know they wanted a minimal design. But they should focus more on readability and ui just the minimum would suffice.
@Pl15604
@Pl15604 2 жыл бұрын
I hope you did not ask LC questions interviewing candidates as a SWE at Twitch if you complain about LC :)
@georgejoseph2601
@georgejoseph2601 Жыл бұрын
Guy is straight up the definition of someone who has most definitely done the LC grind but talks like he hasn’t
@trendy2826
@trendy2826 2 жыл бұрын
1:45
@TheSaintsVEVO
@TheSaintsVEVO 2 жыл бұрын
tl;dw do advent of code
@HowPortal
@HowPortal 2 жыл бұрын
Self pro claimed "great" dev.
@Zzznmop
@Zzznmop 2 жыл бұрын
Boooo
@ericshively4082
@ericshively4082 2 жыл бұрын
Looking forward to your AoC livestream for comparison...
@apidas
@apidas 2 жыл бұрын
indicated by the bleached hair
@rohanpandey9957
@rohanpandey9957 Жыл бұрын
Term great is relative tho
@tonysecomm7050
@tonysecomm7050 2 жыл бұрын
I don't think you are a great dev. Stop tooting your own horn. Playing with React is not programming! 😀
@t3dotgg
@t3dotgg 2 жыл бұрын
Let me know if you make it into top 200 any day in aoc because I got it for both problems today :)
@io-er1ex
@io-er1ex 2 жыл бұрын
I think he means better instead of great. But the word great has more power right? for more clicks 😀
@brunokingz
@brunokingz Жыл бұрын
Did you? I only see copilot doing the work for you@@t3dotgg
@AndrewTSq
@AndrewTSq Жыл бұрын
advent of code is really bad. Why!? well, day 1 problem 2. My code does everything that everyone else had problems with. But I am starting to think there is something wrong with the parsing of the data.. but who wants to check 1000 lines of text ? and even worse.. now I have to wait like 10 minutes before trying again. This is just a "Hey im so good coder" brag thing, and a really bad site that only accepts every 10 minutes. I hope someone does a adventure of code the right way, and not in this really bad way.
@Exiide89
@Exiide89 2 жыл бұрын
I haven't used leetcode ever.
@sammavrs
@sammavrs 2 жыл бұрын
i couldnt find the video where Theo @t3dotgg talks about LeetCode. would love a link if someone can provide it? PLEASE AND THANK YOU :)
@johnpeterson8493
@johnpeterson8493 2 жыл бұрын
nice
A Video About Queues
25:49
Theo - t3․gg
Рет қаралды 57 М.
AI exploits a gamebreaking bug in Trackmania
23:13
Yosh
Рет қаралды 1,9 МЛН
We Attempted The Impossible 😱
00:54
Topper Guild
Рет қаралды 56 МЛН
1% vs 100% #beatbox #tiktok
01:10
BeatboxJCOP
Рет қаралды 67 МЛН
Try this prank with your friends 😂 @karina-kola
00:18
Andrey Grechka
Рет қаралды 9 МЛН
The Truth About Code Performance (Sorry Prime)
20:03
Theo - t3․gg
Рет қаралды 122 М.
Coding in a Random Programming Language Everyday (Huge Mistake)
17:17
A YouTuber Stole My Project (And I'm HYPED)
15:13
Theo - t3․gg
Рет қаралды 48 М.
How To Learn Any Skill So Fast It Feels Illegal
13:48
Justin Sung
Рет қаралды 1 МЛН
How to get the most out ADVENT OF CODE
7:33
Andrew Burgess
Рет қаралды 15 М.
I Beat Minecraft From One Grass Block
35:27
Beppo
Рет қаралды 8 МЛН
Why You Shouldn't Nest Your Code
8:30
CodeAesthetic
Рет қаралды 2,9 МЛН
I tried 10 code editors
10:28
Fireship
Рет қаралды 3,3 МЛН
How I would learn Leetcode if I could start over
18:03
NeetCodeIO
Рет қаралды 842 М.
Why I focus on patterns instead of technologies
7:55
NeetCodeIO
Рет қаралды 241 М.
Массаж головы пранк🤣
0:55
Kirya Kolesnikov
Рет қаралды 5 МЛН
Абзал неге келді? 4.10.22
3:53
QosLike fan club
Рет қаралды 31 М.
Массаж головы пранк🤣
0:55
Kirya Kolesnikov
Рет қаралды 5 МЛН
Лайфхак: Легально делать деньги
0:43