Тёмный

Can Harvard Students Solve This Coding Question For $100? 

Nick White
Подписаться 374 тыс.
Просмотров 192 тыс.
50% 1

The Best Place To Learn Anything Coding Related - bit.ly/3MFZLIZ
Join my free exclusive community built to empower programmers! - www.skool.com/software-develo...
Preparing For Your Coding Interviews? Use These Resources
--------------------
(My Course) Data Structures & Algorithms for Coding Interviews - thedailybyte.dev/courses/nick
AlgoCademy - algocademy.com/?referral=nick...
Daily Coding Interview Questions - bit.ly/3xw1Sqz
10% Off Of The Best Web Hosting! - hostinger.com/nickwhite
Follow My Twitter - / nicholaswwhite
Follow My Instagram - / nickwwhite
Other Social Media
----------------------------------------------
Discord - / discord
Twitch - / nickwhitettv
TikTok - / nickwhitetiktok
LinkedIn - / nicholas-w-white
Show Support
------------------------------------------------------------------------------
Patreon - / nick_white
PayPal - paypal.me/nickwwhite?locale.x...
Become A Member - / @nickwhite
#coding #programming #softwareengineering

Опубликовано:

 

11 июн 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 360   
@NickWhite
@NickWhite 2 года назад
Checkout Kenny's video here! - ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-fgvWS7IfSDc.html
@williebanda3912
@williebanda3912 2 года назад
This guy needs to get sponsored by LeetCode because Wow.
@invincibleHunter
@invincibleHunter 2 года назад
more of math problems rather than coding.
@zacharystanly4804
@zacharystanly4804 2 года назад
You got deep faked, the first three people in the video are MIT students who went to Harvard for boba.
@jamesunknown2408
@jamesunknown2408 2 года назад
Waterloo University
@alamjim6117
@alamjim6117 2 года назад
he just solved the 3Sum problem using the naive bruteforce to get 100$... that is inspirational enough for me lol
@desihaxor5690
@desihaxor5690 2 года назад
You mean Brute force ?
@alamjim6117
@alamjim6117 2 года назад
@@desihaxor5690 yess corrected. Thanks
@milliepards96
@milliepards96 2 года назад
He should have offered a double or nothing opportunity for him to solve it optimally.
@pravinsaha7249
@pravinsaha7249 2 года назад
@@milliepards96 exactly , LOL
@koushhh
@koushhh Год назад
what about the hello world then :')
@rajaganji7982
@rajaganji7982 2 года назад
If you solved 3SUM problem like that. The interviewer will never call you back.
@user-gz1nv6nw3q
@user-gz1nv6nw3q 2 года назад
Doesn't matter. Hes probably not studying CS
@rajaganji7982
@rajaganji7982 2 года назад
​@@user-gz1nv6nw3q Yeah try telling that to the interviewer.
@computerfis
@computerfis 2 года назад
How would you have done it i am curious?
@computerfis
@computerfis 2 года назад
I would say well done, he was on the spot, so it was probably quite stressfull
@heathnilsen700
@heathnilsen700 2 года назад
Bro who even are you? That kid works at Google
@bianchialex
@bianchialex 2 года назад
These kids don't need your money 😂
@nathank1294
@nathank1294 2 года назад
It's so unfair that the guy that did print("Hello world") got the same money that the guy that litterally reversed a linked list.
@elsnowman123
@elsnowman123 2 года назад
True, but to be fair, reversing a linked list is also fairly basic
@haghendowdy4750
@haghendowdy4750 2 года назад
@@elsnowman123 not the difficulty but how unusual it is
@execute605
@execute605 Год назад
Salary different between on campus and off campus placements.😉
@tekamanurag6065
@tekamanurag6065 Год назад
@@elsnowman123 ikr almost everything was basic, I was expecting more working my ass off because I didn't got the college and always thought these guys must be killing out there. Now idk what to say.
@chambatips3619
@chambatips3619 Год назад
It's his money
@rockingpops
@rockingpops 2 года назад
This is like a give away. You're helping them debug. Sweet of you to do that. Made me smile! 😊
@Star-rd9eg
@Star-rd9eg 2 года назад
Yeah haha like giving away salt water to fishermen
@kennygunderman
@kennygunderman 2 года назад
What Ivy League should we go to next? 🤔
@williebanda3912
@williebanda3912 2 года назад
Yale
@mulengandalama9986
@mulengandalama9986 2 года назад
MIT
@williebanda3912
@williebanda3912 2 года назад
@@mulengandalama9986 they already did. Check at 5:22
@williebanda3912
@williebanda3912 2 года назад
Most People from Harvard study Humanities. MIT has the most STEM students
@SatyamCodesss
@SatyamCodesss 2 года назад
UCLA
@awarepenguin3376
@awarepenguin3376 2 года назад
MIT students just built different, sheesh.
@Manny-ng9vo
@Manny-ng9vo 2 года назад
Yay love this series keep doing them! Let’s not only educate people with programming but let’s get them interested 😀
@Sim0000n
@Sim0000n 2 года назад
Nick I love you! I got an internship offer from a MANG company today and your videos helped a lot at the preparation! Thank you so much!
@kenthankgod2619
@kenthankgod2619 2 года назад
Way to go Simon, I'm currently in a bootcamp called 100devs you might have heard of it, I'd be glad to connect with you, on Twitter or any other social media platform, I'm so happy to see your hardwork pay off dude :)
@jacksullivan7777
@jacksullivan7777 2 года назад
Must’ve been insane to go back to campus as such a prestigious alumni. Great video!
@SiviweXakaza
@SiviweXakaza 2 года назад
Yesterday i got a job at amazon as SDE, your leetcode playlist helped me alot, thank you!
@tiger_vii
@tiger_vii Год назад
LOVE THESE VIDEOS.... brings back memories when i did some old skool coding in Qbasic over 25 years ago.....
@Moshean
@Moshean 2 года назад
just started to learn c#. love your vids keep it up!
@EPICPIXEL24
@EPICPIXEL24 2 года назад
Funny how when I first seen these videos a year ago I had no idea how to code. Now I instantly can do these in my head.
@sonman3694
@sonman3694 2 года назад
Just found your channel, subscribed. I'm learning c++ currently. This is cool stuff.
@FelixIsLosing
@FelixIsLosing 8 месяцев назад
I think the video highlights 2 key learning points: 1) Don't put everyone on a pedestal purely because of their background, education and upbringing. These Harvard students suck at programming. If you start with the impression that you are inferior to them, then you are sabotaging yourself. 2) The power of daily self-improvement. Doing Leetcode everyday might be hard at first, but you quickly get much better than people who are paying $50 000/year. It's not where you come from, it's where you are going and what steps you are taking to get there!
@jared6976
@jared6976 2 года назад
For removing duplicates If you convert the input to a hash set and back to a list you don't preserve ordering of elements
@prawendrakumar1123
@prawendrakumar1123 2 года назад
I really enjoyed watching and thinking of possible solutions at the same time
@ObieR
@ObieR 2 года назад
I love it these videos are entertaining as hell AND they’re help me prepare for my upcoming coding interview
@TheStringBreaker
@TheStringBreaker 2 года назад
*Hell Yeah* ! You should do more of these on college campuses.
@nothingiseverperfect
@nothingiseverperfect 2 года назад
omg if you were at MIT what if he found William Lin 😨😨😨😨😨 HUGE CROSS OVER
@NickWhite
@NickWhite 2 года назад
already have a video with him! but i messaged him while there (he was out of town)
@HelloWorld-sy4yc
@HelloWorld-sy4yc 2 года назад
imagine how he'll try to invert a binary tree...
@harshvardhanpandey8057
@harshvardhanpandey8057 2 года назад
Or benq or ksun or ecnerwal
@nephronpie8961
@nephronpie8961 2 года назад
@@NickWhite yeah, probably doing his icpc finals. just another day i guess ;)
@ayushtripathi1125
@ayushtripathi1125 2 года назад
Found the USACO nerd /s
@gamewithvaibhav5351
@gamewithvaibhav5351 2 года назад
Really enjoy watching your videos ❤️
@SavageDoesSomething
@SavageDoesSomething 2 года назад
Editing and establishing shots were tight in this video, great work Nick
@BeatClicks
@BeatClicks 2 года назад
Final 3sum question is a little tricky. The only way it could have been optimised is by using two pointer approach after sorting the array. Even after that complexity would have been O(n^2)
@nag0074
@nag0074 2 года назад
Yep. k sum problem has an optimal time complexity of O(n^(k-1))
@CodingPhase
@CodingPhase 2 года назад
Great job nick I like this type of content
@rend1027
@rend1027 Год назад
I just realize none of these codes would pass the logic is there sometimes but the syntax is all jacked up
@cajaun
@cajaun 2 года назад
Can tell this is going to be a banger
@hutaobestgril6612
@hutaobestgril6612 2 года назад
i know little about coding but those MIT students actually were good at explaining some of the stuff in it compare to the Harvard students
@raj-nq8ke
@raj-nq8ke 2 года назад
Come to India. We will show you what real coding is like and not these 3rd grade questions.
@le0nz
@le0nz 2 года назад
@@raj-nq8ke still you get pay peanuts
@printchannel_name3371
@printchannel_name3371 2 года назад
@@raj-nq8ke where in India ?? Not every person in India is a cs grad 😂🙏
@RohitSingh-yo2yl
@RohitSingh-yo2yl 2 года назад
@@le0nz yes 😂😂, Supply >> Demand
@AetherCS2
@AetherCS2 2 года назад
Yeah i was blown away
@jericholanceta9853
@jericholanceta9853 2 года назад
keep it up bro ! more contents to come!
@yahwehagape
@yahwehagape 2 года назад
7:41 Ignoring the n^3 de-optimization, the 3sum code is checking the indices on lines 4 and 5, where it should instead use the values at those indices.
@karenfisher2322
@karenfisher2322 2 года назад
Since apparently CS 50 is the most popular course at Harvard (and something of a media spectacle online, which is why I know of it), I'm not surprised you could be out not just a few hundred-bucks.
@Uzbekcha_ASMR_quyoncha
@Uzbekcha_ASMR_quyoncha 2 года назад
DO MORE OF THESE VIDS PLS LOVE U
@simangalisohlongwa5996
@simangalisohlongwa5996 2 года назад
Good content!!!!! Love your videos Man!
@dalexxa
@dalexxa 2 года назад
My boi Nick is living the dream, he's famous in Harvard and doesn't even go there lol
@SagarTakoresdt
@SagarTakoresdt Год назад
02:12 we can also solve this in just 2 lines by array destructuring and spread. const [a, b, c] = arr console.log([...a,...b,...c])
@Nuggetmonk
@Nuggetmonk Год назад
"ill spend this in a way that i regret" i feel ya bro ^^
@soubarnobanerjee8257
@soubarnobanerjee8257 2 года назад
That "Multiplication" problem was way too easy to earn 100 bucks
@anirudhhebbar1920
@anirudhhebbar1920 2 года назад
Oh ya? The first guy got 100 bucks for printing hello world 😂😂
@lemoonadee
@lemoonadee 2 года назад
That awkward hand gestures at beginning though 😂😂😂
@hritikchaudhary5470
@hritikchaudhary5470 2 года назад
Please ask moderate problem like space n time optimization.
@swadeshdeepanand6370
@swadeshdeepanand6370 2 года назад
Please make a video about how you setup your mac for programming.
@muaz6198
@muaz6198 2 года назад
My g keep up the good work
@danielchemao5659
@danielchemao5659 2 года назад
Nice idea.Keep doing it it's so entertaining.
@akhilbhardwaj7733
@akhilbhardwaj7733 2 года назад
Another one after 3 months, but the consistency is superb !!
@manishbhatt1101
@manishbhatt1101 2 года назад
"I've been to Harvard", you can write that on your resume now 🥳
@NitinPal101
@NitinPal101 2 года назад
William Lin at MIT must have been busy with winning yet another Google Kickstart round.
@tibetatakan
@tibetatakan 9 месяцев назад
The first questions function won’t work for an array that doesn’t start with 1. It should have been “int answer = arr[0];”
@chiikaflor1489
@chiikaflor1489 2 года назад
Set is exactly what I knew the best 😭☺️
@patrickalexanderlucasvande4214
the way he did with the 2d array I could not do it at all, would have used .flat() in js
@rustycherkas8229
@rustycherkas8229 2 года назад
Nick, this comment is because of the smile this video has given me... Thanks! :-) I close my eyes when you're talking and I 'see' Nelson Bagetti ("Silicon Valley") holding the microphone... :D Very cool, man! "Bighead" was my favourite (chill) character in whole the series...
@blitzace9728
@blitzace9728 2 года назад
I think harder questions would be more interesting or maybe some trick questions
@ColeHastings
@ColeHastings 2 года назад
I'm in this
@nd82183
@nd82183 2 года назад
Never expected, but happy :)
@stackingflow
@stackingflow 2 года назад
Which one is you.
@lunangellus
@lunangellus 2 года назад
i wish he would start his own youtube channel. because he is so good at explaining. 5:47
@borinthiago
@borinthiago 2 года назад
I thought the same. Maybe that's why he one of the google ones 🙂
@atlantic_love
@atlantic_love 8 месяцев назад
Me, too. He seems super nice and interested in teaching others. And he's good-looking!
@jacobvandyk3
@jacobvandyk3 2 года назад
the problem at 4:15 is literally just usaco beads program just without the wild card option. curretly strgging to write the logic for it, took notes form this guy lmao
@barney8545
@barney8545 2 года назад
2:33 I doubt if the array is nested to deep levels, that algos won't work.
@HypeActiveAA
@HypeActiveAA 2 года назад
6:25 all the motivation i need
@johnattandias9846
@johnattandias9846 Год назад
arr = [1,2,3,4,5] def multiplyArray(arr): res = 1 for i in range(len(arr)): res = res*arr[i] return res print(multiplyArray(arr))
@honeypatel14
@honeypatel14 2 года назад
1:41 Nice
@thiswasme5452
@thiswasme5452 2 года назад
Noice 😏
@georgejetson9801
@georgejetson9801 2 года назад
I love this. Looks like fun.
@adiyn_
@adiyn_ 2 года назад
Those are the best videos of the moment
@Uzbekcha_ASMR_quyoncha
@Uzbekcha_ASMR_quyoncha 2 года назад
YESSS JUST WHAT WE NEEDED LIKED BEFORE WATCHING
@ferro31_
@ferro31_ 2 года назад
4:19 please whaqt music is that ive been looking1 for its title
@AzureFlash
@AzureFlash 2 года назад
Imagine a chad APL coder walking up and writing 3 arcane glyphs to win 100$
@Xrossbot
@Xrossbot 2 года назад
I'll be starting programming after my entrance exams Hopefully i come across this video again so that I'll be able to solve all of those questions
@deboayangbile1689
@deboayangbile1689 2 года назад
6:25 😂😂😂. Reminds me of those Nick White music videos 😂
@ellischen9109
@ellischen9109 2 года назад
I wonder how the gentleman at 2:08 feels about the United States federal government enacting CFAA reform
@gotemlearning
@gotemlearning 2 года назад
Iowa
@avinashshah5271
@avinashshah5271 2 года назад
Lmaoooo
@ishansharma5304
@ishansharma5304 2 года назад
He feels that it would be a bad idea because it would sap too much of Biden's PC which would derail the infrastructure bill which would cause non-linear existential threats which would O/W the benefits of CFAA reform
@oneofone_1333
@oneofone_1333 2 года назад
yo nick is your course dropping tomorrow?
@Mr.Plutonium
@Mr.Plutonium 2 года назад
What language is your algorithm course in?
@antianti4331
@antianti4331 2 года назад
Thought that Harvard guy would solve 3 sum with much lower complexity
@nathanesau1
@nathanesau1 2 года назад
lol i was laughing when the guy asked what time complexity of three sum was and the guy was so happy to say that it was O(N^3).
@Bskater952
@Bskater952 2 года назад
At 1:29 I think the int answer should technically be assigned to the value 1 instead of 0, else you’d get 0’s all the way through
@Bskater952
@Bskater952 2 года назад
Nvm he said that right after. Lol
@KevinNaughtonJr
@KevinNaughtonJr 2 года назад
I have fomo
@Coolgiy67
@Coolgiy67 2 года назад
5:32 in matlab union(A,B) 😎 (assuming that’s what he named the vectors)
@jinettew.3192
@jinettew.3192 Год назад
God bless ya Nick!
@bhaskarsadawarte7696
@bhaskarsadawarte7696 2 года назад
Hey Nick.. just watching your 95th questions.. suddenly i got notification of ur new video 😁
@bo_0ss
@bo_0ss 2 года назад
What is the second song? Pls anyone
@yonasco14
@yonasco14 Год назад
What question did he ask him in the end when he said n cubed ?
@darkferiousity
@darkferiousity 2 года назад
Got one for you guys: Shifted square problem...4 squares stacked...2 colums 2 rows...shown from the side open cv gives out unorganized (x,y) coordinates/points in a multidimensional array. There are 16 points in the array. I need to organize them so that each point matches it's corresponding square side and give an id to each square starting at 1 from top left to right then bottem left to right. Important that the bottem left square is shifted slightly further left than the left top square and the top right square is shifted up more so than the top left square. Edit: The squares might be rotated and one last thing is the center of each square needs to be determined. Each squares dimensions are 2 units high by 4 units long.
@ZantierTasa
@ZantierTasa 2 года назад
What on EARTH are you talking about? This is so badly explained and underspecified. -Why is it a "multidimensional array" of points? -What is it to "match"? -What is a "square side"? -How are the "id"s relevant? -What determines the positions of the "squares" (that are actually recrangles, from the dimensions you gave), and whether they are rotated or not?
@darkferiousity
@darkferiousity 2 года назад
@@ZantierTasa @Zantier Ta'sa @Zantier Ta'sa Zantier if you were paying attention. I gave you out all the information you would need. Multidimensional as in points = [(x,y),(x,y),...], there are 16 points/coordinates. Sorry my bad shifted rectangles*....This problem could be applied to squares as well does not really matter. A match would be: match = [(x,y),(x,y),(x,y),(x,y)] determining a match is up to you. The ids were just for organizing the matches of points. You could also just organize the matches using a different way if you prefer as long as the 4 points for each square/rectangle are seperated from the other. I gotta go to work, but I could draw you out an example. I can clarify more, but not gonna write out a lot on a youtube comment.
@ZantierTasa
@ZantierTasa 2 года назад
@@darkferiousity That isn't multidimensional, that's a 1-dimensional array of coordinates. You still haven't said what "square side" is, or what it means to "match". Like if there's 16 points, can I just return the whole list of 16 points, and call that a match?? What am I matching? You've just said there's points and rectangles, and I have no idea if I'm given coordinates for the rectangles, or if I'm supposed to figure out where the rectangles go. A diagram would help, sure. Or an explanation would help, too.
@darkferiousity
@darkferiousity 2 года назад
@@ZantierTasa 1 dimensional array = [x, y, x, y, x, y.....] multidimensional = [(x,y), (x,y)....] a match would be 4 points per square/rectangle
@darkferiousity
@darkferiousity 2 года назад
@@ZantierTasa no coordinates are given because this should match for any coordinates
@justsomeguy4580
@justsomeguy4580 2 года назад
what lang do you use?
@nomuraamraa8588
@nomuraamraa8588 Год назад
I was expecting some random thing flying into outer space when I heard shooting stars.
@Parth.Deshpande
@Parth.Deshpande 2 года назад
inception music with google that guy 😂🤣
@vinayak186f3
@vinayak186f3 2 года назад
5:39 This person is hilarious
@kdtechniquesofficial6153
@kdtechniquesofficial6153 Год назад
func multiplyArray(array: [Int]) -> Int { var multi = 1 for i in 0...array.count-1 { multi *= array[i] } return multi } let array: [Int] = [1, 2, 3, 4, 5] print(multiplyArray(array: array))
@HackedPC
@HackedPC 9 месяцев назад
js
@GatoPatataGameplays
@GatoPatataGameplays 2 года назад
2;43 I swear i could thought was "easy i just throw a hashmap"
@adiyn_
@adiyn_ 2 года назад
Try Stanford
@pigsonwings
@pigsonwings 2 года назад
standing in line to see the show tonight and there’s a light on, heavy glow by the way i tried to say i’ll be there, waiting for dani the girl is singing songs to me beneath the marquee, overload
@HarisVFX
@HarisVFX 2 года назад
Come to Georgia Tech
@paulpavlinskyi4793
@paulpavlinskyi4793 2 года назад
I live right next to Cambridge, what I shame I did not meet you guys, would love to get that easy $100.
@AkiZukiLenn
@AkiZukiLenn 2 года назад
IMAGINE CODING INSIDE A SMALL BOARD LIKE THIS
@alaqmarsalik
@alaqmarsalik 2 года назад
what is a 'html' is it pronounced H(u)tM(a)l?
@kenthankgod2619
@kenthankgod2619 2 года назад
My God, how are these dudes solving this even without scratching there heads lol, seems impossible but possible
@livingforwhat2172
@livingforwhat2172 11 месяцев назад
am i stupid or if(i != j !=k) doesnt work ? as far as i understand it checks if two values are the same and the != operator returns 1 or 0 then u are comparing 0 or 1 with the last variable no ?
@HackedPC
@HackedPC 9 месяцев назад
You aren't stupid
@nodehead9475
@nodehead9475 2 года назад
been waiting months for this video
@drover7476
@drover7476 2 года назад
What max song was that at 1:40
@RedStone576
@RedStone576 2 года назад
now this is content
@Niggeshwar69
@Niggeshwar69 Год назад
2:29 i don't think this code would work as the loop count is i and j and there is no way to declare at what position the value of arr[ i ] [ j ] is to be inserted, this loop will only insert value of first 3 element position others will be blank as the loop will work for 3 times on each level. Feel free to prove me wrong...
@nikolaitesla5479
@nikolaitesla5479 Год назад
You wrong bro
@Niggeshwar69
@Niggeshwar69 Год назад
@@nikolaitesla5479 lemme know how
@allmattmurdock283
@allmattmurdock283 2 года назад
what is leetocode?
@shinde5266
@shinde5266 Год назад
Instead of using inbuilt python function coding raw code it actually shows true skills
@mitchwar2065
@mitchwar2065 2 года назад
Forgot the semicolon on the first question... wouldn't have let him have it XD
@abhainike7117
@abhainike7117 Год назад
Why does it feel like I could solve those without any problem
Далее
I solved 950 coding questions. Here's what I learned.
5:27
How to answer any system design interview question?
1:37:51
С Анджилишей как в раю🥰
00:10
Просмотров 133 тыс.
TRY NOT TO LAUGH 😂
00:56
Просмотров 8 млн
Self Taught Programmers... Listen Up.
11:21
Просмотров 986 тыс.
Solve This Coding Problem and Win $200
8:06
Просмотров 2,4 млн
Harvard, how many languages do you speak?
9:54
Просмотров 1,8 млн
Asking Harvard Students To Solve My Rubik's Cube
8:40
Advice from the Top 1% of Software Engineers
10:21
Просмотров 3,2 млн
Guessing Majors at Harvard University
15:31
Просмотров 2,6 млн