Can Harvard Students Solve This Coding Question For $100?
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
Пікірлер: 360
Checkout Kenny's video here! - kzread.info/dash/bejne/mJuqubVwecm5dMY.html
@williebanda3912
2 жыл бұрын
This guy needs to get sponsored by LeetCode because Wow.
@invincibleHunter
2 жыл бұрын
more of math problems rather than coding.
@zacharystanly4804
2 жыл бұрын
You got deep faked, the first three people in the video are MIT students who went to Harvard for boba.
@jamesunknown2408
2 жыл бұрын
Waterloo University
he just solved the 3Sum problem using the naive bruteforce to get 100$... that is inspirational enough for me lol
@desihaxor5690
2 жыл бұрын
You mean Brute force ?
@alamjim6117
2 жыл бұрын
@@desihaxor5690 yess corrected. Thanks
@milliepards96
2 жыл бұрын
He should have offered a double or nothing opportunity for him to solve it optimally.
@pravinsaha7249
2 жыл бұрын
@@milliepards96 exactly , LOL
@koushhh
Жыл бұрын
what about the hello world then :')
If you solved 3SUM problem like that. The interviewer will never call you back.
@user-gz1nv6nw3q
2 жыл бұрын
Doesn't matter. Hes probably not studying CS
@rajaganji7982
2 жыл бұрын
@@user-gz1nv6nw3q Yeah try telling that to the interviewer.
@computerfis
2 жыл бұрын
How would you have done it i am curious?
@computerfis
2 жыл бұрын
I would say well done, he was on the spot, so it was probably quite stressfull
@heathnilsen700
2 жыл бұрын
Bro who even are you? That kid works at Google
These kids don't need your money 😂
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
2 жыл бұрын
True, but to be fair, reversing a linked list is also fairly basic
@haghendowdy4750
2 жыл бұрын
@@elsnowman123 not the difficulty but how unusual it is
@execute605
Жыл бұрын
Salary different between on campus and off campus placements.😉
@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
Жыл бұрын
It's his money
This is like a give away. You're helping them debug. Sweet of you to do that. Made me smile! 😊
@Star-rd9eg
2 жыл бұрын
Yeah haha like giving away salt water to fishermen
What Ivy League should we go to next? 🤔
@williebanda3912
2 жыл бұрын
Yale
@mulengandalama9986
2 жыл бұрын
MIT
@williebanda3912
2 жыл бұрын
@@mulengandalama9986 they already did. Check at 5:22
@williebanda3912
2 жыл бұрын
Most People from Harvard study Humanities. MIT has the most STEM students
@SatyamCodesss
2 жыл бұрын
UCLA
MIT students just built different, sheesh.
Yay love this series keep doing them! Let’s not only educate people with programming but let’s get them interested 😀
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
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 :)
Must’ve been insane to go back to campus as such a prestigious alumni. Great video!
Yesterday i got a job at amazon as SDE, your leetcode playlist helped me alot, thank you!
LOVE THESE VIDEOS.... brings back memories when i did some old skool coding in Qbasic over 25 years ago.....
just started to learn c#. love your vids keep it up!
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.
Just found your channel, subscribed. I'm learning c++ currently. This is cool stuff.
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!
For removing duplicates If you convert the input to a hash set and back to a list you don't preserve ordering of elements
I really enjoyed watching and thinking of possible solutions at the same time
I love it these videos are entertaining as hell AND they’re help me prepare for my upcoming coding interview
*Hell Yeah* ! You should do more of these on college campuses.
omg if you were at MIT what if he found William Lin 😨😨😨😨😨 HUGE CROSS OVER
@NickWhite
2 жыл бұрын
already have a video with him! but i messaged him while there (he was out of town)
@HelloWorld-sy4yc
2 жыл бұрын
imagine how he'll try to invert a binary tree...
@harshvardhanpandey8057
2 жыл бұрын
Or benq or ksun or ecnerwal
@nephronpie8961
2 жыл бұрын
@@NickWhite yeah, probably doing his icpc finals. just another day i guess ;)
@ayushtripathi1125
2 жыл бұрын
Found the USACO nerd /s
Really enjoy watching your videos ❤️
Editing and establishing shots were tight in this video, great work Nick
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
2 жыл бұрын
Yep. k sum problem has an optimal time complexity of O(n^(k-1))
Great job nick I like this type of content
I just realize none of these codes would pass the logic is there sometimes but the syntax is all jacked up
Can tell this is going to be a banger
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
2 жыл бұрын
Come to India. We will show you what real coding is like and not these 3rd grade questions.
@le0nz
2 жыл бұрын
@@raj-nq8ke still you get pay peanuts
@printchannel_name3371
2 жыл бұрын
@@raj-nq8ke where in India ?? Not every person in India is a cs grad 😂🙏
@RohitSingh-yo2yl
2 жыл бұрын
@@le0nz yes 😂😂, Supply >> Demand
@AetherCS2
2 жыл бұрын
Yeah i was blown away
keep it up bro ! more contents to come!
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.
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.
DO MORE OF THESE VIDS PLS LOVE U
Good content!!!!! Love your videos Man!
My boi Nick is living the dream, he's famous in Harvard and doesn't even go there lol
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])
"ill spend this in a way that i regret" i feel ya bro ^^
That "Multiplication" problem was way too easy to earn 100 bucks
@anirudhhebbar1920
2 жыл бұрын
Oh ya? The first guy got 100 bucks for printing hello world 😂😂
That awkward hand gestures at beginning though 😂😂😂
Please ask moderate problem like space n time optimization.
Please make a video about how you setup your mac for programming.
My g keep up the good work
Nice idea.Keep doing it it's so entertaining.
Another one after 3 months, but the consistency is superb !!
"I've been to Harvard", you can write that on your resume now 🥳
William Lin at MIT must have been busy with winning yet another Google Kickstart round.
The first questions function won’t work for an array that doesn’t start with 1. It should have been “int answer = arr[0];”
Set is exactly what I knew the best 😭☺️
the way he did with the 2d array I could not do it at all, would have used .flat() in js
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...
I think harder questions would be more interesting or maybe some trick questions
I'm in this
@nd82183
2 жыл бұрын
Never expected, but happy :)
@stackingflow
2 жыл бұрын
Which one is you.
i wish he would start his own youtube channel. because he is so good at explaining. 5:47
@borinthiago
2 жыл бұрын
I thought the same. Maybe that's why he one of the google ones 🙂
@atlantic_love
8 ай бұрын
Me, too. He seems super nice and interested in teaching others. And he's good-looking!
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
2:33 I doubt if the array is nested to deep levels, that algos won't work.
6:25 all the motivation i need
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))
1:41 Nice
@thiswasme5452
2 жыл бұрын
Noice 😏
I love this. Looks like fun.
Those are the best videos of the moment
YESSS JUST WHAT WE NEEDED LIKED BEFORE WATCHING
4:19 please whaqt music is that ive been looking1 for its title
Imagine a chad APL coder walking up and writing 3 arcane glyphs to win 100$
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
6:25 😂😂😂. Reminds me of those Nick White music videos 😂
I wonder how the gentleman at 2:08 feels about the United States federal government enacting CFAA reform
@gotemlearning
2 жыл бұрын
Iowa
@avinashshah5271
2 жыл бұрын
Lmaoooo
@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
yo nick is your course dropping tomorrow?
What language is your algorithm course in?
Thought that Harvard guy would solve 3 sum with much lower complexity
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).
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
2 жыл бұрын
Nvm he said that right after. Lol
I have fomo
5:32 in matlab union(A,B) 😎 (assuming that’s what he named the vectors)
God bless ya Nick!
Hey Nick.. just watching your 95th questions.. suddenly i got notification of ur new video 😁
What is the second song? Pls anyone
What question did he ask him in the end when he said n cubed ?
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
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
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
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
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
2 жыл бұрын
@@ZantierTasa no coordinates are given because this should match for any coordinates
what lang do you use?
I was expecting some random thing flying into outer space when I heard shooting stars.
inception music with google that guy 😂🤣
5:39 This person is hilarious
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
9 ай бұрын
js
2;43 I swear i could thought was "easy i just throw a hashmap"
Try Stanford
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
Come to Georgia Tech
I live right next to Cambridge, what I shame I did not meet you guys, would love to get that easy $100.
IMAGINE CODING INSIDE A SMALL BOARD LIKE THIS
what is a 'html' is it pronounced H(u)tM(a)l?
My God, how are these dudes solving this even without scratching there heads lol, seems impossible but possible
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
9 ай бұрын
You aren't stupid
been waiting months for this video
What max song was that at 1:40
now this is content
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
Жыл бұрын
You wrong bro
@Niggeshwar69
Жыл бұрын
@@nikolaitesla5479 lemme know how
what is leetocode?
Instead of using inbuilt python function coding raw code it actually shows true skills
Forgot the semicolon on the first question... wouldn't have let him have it XD
Why does it feel like I could solve those without any problem