it would be more entertaining / there were be more people who try it (so we can see some fails too), if You were the one who come up with a function and people should have tell what does it do / what will it respond for a specific input pseudo coding or c / java / js, anything works just try to avoid language specific things in your functions
Please correct me if I'm wrong, but: The example code for FizzBuzz at 4:12 should be wrong. If the parameter number is divisible by 15, the function always will return Fizz instead of Fizzbuzz since all numbers divisible by 15 are also divisible by 3 as used for the if-statement. The check if the parameter is divisible by 15 should be at first to get a proper FizzBuzz :)
@@rs7009 you are not wrong, when I noticed it I liked a comment at the time that called it out it, but I can not seem to find it.. but here is a working solution for js: function fizzbuzz(n) { console.log((n % 3 ? '' : 'fizz') + (n % 5 ? '' : 'buzz') || n); }
Bro I must be as old as the kids and I know 3 computer language now learing Java script it's not that amazing for an Indian All of those were indian kids
@@tomd9170 it doesn’t take you 1 week but you get the feeling of understanding the code once you start your classes. Once you see it, you can actually answer it. Also it depends on how the person asking you the question is. Make sure you ask them to clarify.
I died laughing because the professor he thanked is a bit of a meme within the CS department at U of I. He is a good professor, but teaches the intro class for CS majors, and does a lot to be a "hip" professor. I thought it was just really funny to hear about Geoff Challen in a way that genuinely thanked him for once.
Omg 😄 100$ for such easy questions ? Then I am thinking that there must be 1000$ price money for the questions of Graph and DP. Well one day I'll be in USA and winning these amount by solving such coding questions.
@@axeraazer1767 I mean unless you are saying Indian people have a certain genetic code that allows them to recognize certain information better than others? Then the statement you made seems stereotypical / offensive, there hasn’t really been any information proven to back what you are currently suggesting. One thing that has been proven, if any competent individual dedicates a lot of hard work and time into something they can become a master at it, regardless of rather you are Indian, white, black. It’s called “human potential” you may call it what you like but it has little to do with the pigment of someone’s skin.
@Yaseen Khawaja new function which has return text for console to log in each if...there are videos about not using else...or use switch...actually for this particular video for kinda simplicity it is ok...just not pleasant :)
@@watch6565 if it's zero-indexed then it should not be "i < arr.length - 1" since the loop will break at the last index rather than the end of the array where the last index is "arr.length - 1".
What the helping hand was trying to say to him and he didn't understand is that on fizzbuzz, instead of printing a line, just print. If % 3, then Fizz, if % 5 then Buzz. If it happens to be both, it will print FizzBuzz. If not either, print N. Always print a new line character. That way you don't need the "If % 3 and % 5"
When I watched this video for the first time, I didn't even understand the question. when i watch this video again now i realized that the questions are simple
3:22 is incorrect. There should be i < arr.length. not: i < arr.length-1. In the video arr.length-1 is not included so if 7 was the last element of the array, code would just return -1 instead of arr.length-1. But congratz on 100$ though
the count starts from 0. if you were to use i < arr.length you'd get a syntax error, because it would do one extra loop. So the video was correct and you aren't. 😎
Omg 😄 100$ for such easy questions ? Then I am thinking that there must be 1000$ price money for the questions of Graph and DP. Well one day I'll be in USA and winning these amount by solving such coding questions.
In the next video, show a pre-written code to common people and ask them tell what the code is doing. That would be fun. More non-CS people will be able to participate.
Omg 😄 100$ for such easy questions ? Then I am thinking that there must be 1000$ price money for the questions of Graph and DP. Well one day I'll be in USA and winning these amount by solving such coding questions.
The solution at 3:29 is wrong - it doesn't check the last element of the array because the for loop checks i < arr.length - 1 instead of just i < arr.length or i
@@nikhilkumar-hj8rt I'm planning the same to do, Here you can't find much infrastructure in all places and the accessibility isn't great, the taxes on computer parts don't help either so yeah..., I mean if it becomes better ofc I'd be staying here
India is a great country if anyone outside India is reading this. But the only problem is corruption and too much reservation and less focus on creativity and more focus on marks. I wish all of this improved.
@@aniketmane6232 ``` invertBinaryTree(root) { if root is null: return // swap left and right child tmp = root.left root.left = root.right root.right = tmp // invert children trees invertBinaryTree(root.left) invertBinaryTree(root.right) } ```
Omg 😄 100$ for such easy questions ? Then I am thinking that there must be 1000$ price money for the questions of Graph and DP. Well one day I'll be in USA and winning these amount by solving such coding questions.
@@imshivendra Are you stuck in a while(true) loop? Or is there another reason for repeating yourself so many times in this thread alone? Maybe you should exit at some point, or someone might break(); you.
Wait this is wild, I saw this video a year ago and couldn’t understand a single question and thought coding was magic, now a year later after learning these questions are incredibly easy, woah.
I like this for the fact that you're not throwing out binary search tree or some shit that people haven't heard or seen, with this they can even write pseudo code or basic logic. Good work!
Omg 😄 100$ for such easy questions ? Then I am thinking that there must be 1000$ price money for the questions of Graph and DP. Well one day I'll be in USA and winning these amount by solving such coding questions.
it's the old school way. notice how he also declared i outside the loop statement. I notice that it's usually with older C programmers who declare unneeded shit upfront, and then remove them when refactoring later. I guess it makes sense if you read the book "The C Programming Language" (1978) by Kernighan & Ritchie, which was the bible of programming for several years. Same coding style in the book.
more inportantly in the for loop he puts i = 0 instead of int i = 0. So his code wouldn't even compile, on top of the other strange oddities that you mention.
Omg 😄 100$ for such easy questions ? Then I am thinking that there must be 1000$ price money for the questions of Graph and DP. Well one day I'll be in USA and winning these amount by solving such coding questions.
They also used a comma instead of a semicolon, but I assume tiny mistakes like that doesn't really matter since they're forced to write it on a whiteboard
4:11 I actually solve this problem a week ago for our last task in ICT. It feels so great even though I'm just 2 weeks in programming. I also want to pursue computer science cause once I printed "hello world" I feel that computer programming is my destiny.
Be aware that the example he showed it's wrong, sorry for being 1 month late to tell you this. If the number is divisible by 3 or 5 the code will just print "fizz", when it should print "fizzbuzz", and that's because he used else if
Omg 😄 100$ for such easy questions ? Then I am thinking that there must be 1000$ price money for the questions of Graph and DP. Well one day I'll be in USA and winning these amount by solving such coding questions.
As a programmer, this is my first time seeing a beautiful content of programmer. We are specially introverts but when a programmer goes outside and making fun in crowd, that makes me goosebumps and smile.
Only the part of the man with his family worths, telling the normies looking woman the look like a coder made me wish i was deaf, then i didnt even finish the video lol
The most hilarious thing this that the code that is displayed on the screen and in the thumbnail for the fizzbuzz problem is incorrect. Take the number 15, if you pass that number into the function, the first thing it will check is if the number is divisible by 3, since it is it will print 'fizz' and that's it. The function will end even though 15 is divisible by 3 and 5. You have the wrong ordering of if statements if this is the way you want to do it.
That’s very true. The way I would do it (Java) would be: (sorry in advance if the formatting gets messed up. I’m on mobile) Public static void fizzBuzz(int num) { if (num %3 == 0){ system.out.print(“fizz”); } if (num%5 == 0){ system.out.print(“buzz”); } system.out.println(); For those who don’t know using print instead of println means that the next thing to print will be on the same line so fizz and buzz would print out as fizzbuzz if num satisfies both if statements.
"Easiest hundred dollers of your life..." Dude, that was a wholesome harsh brutal truth right there. If only I knew how difficult will be each hundred dollers off my coding jobs would become, I'd never do down that path 🤣🤣
Please record another one of these! Please! or make it a series I swear this is so fun to watch. (maybe ask the participants more than 1 question and see how well there are doing at the first one, if they are doing great and seem to be quite good, ask them a question that's a little harder than fizzBuzz or SumOfArr) One of the most entertaining videos I have seen in a long time! (Please wear a mask when you go into a store)
Omg 😄 100$ for such easy questions ? Then I am thinking that there must be 1000$ price money for the questions of Graph and DP. Well one day I'll be in USA and winning these amount by solving such coding questions.
I'm over here trying to understand how to invert a binary tree and then you come with these questions that you can solve directly with a bit of thought. I wish I was in the place of these guys
Not too sure about that😅. Could you suggest how and where to start coding for a beginner, no scratch that, for a baby please. I have no clue about this. I don't even know the difference between coding and programming
If you guys want to participate in one of these videos I will be making some virtual ones soon with people in my discord! - discord.gg/zrTxWYZVGm
jikiiuuuhihj
hjhjk.
, n GX
it would be more entertaining / there were be more people who try it (so we can see some fails too), if You were the one who come up with a function and people should have tell what does it do / what will it respond for a specific input
pseudo coding or c / java / js, anything works just try to avoid language specific things in your functions
Please correct me if I'm wrong, but: The example code for FizzBuzz at 4:12 should be wrong. If the parameter number is divisible by 15, the function always will return Fizz instead of Fizzbuzz since all numbers divisible by 15 are also divisible by 3 as used for the if-statement. The check if the parameter is divisible by 15 should be at first to get a proper FizzBuzz :)
@@rs7009 you are not wrong, when I noticed it I liked a comment at the time that called it out it, but I can not seem to find it..
but here is a working solution for js:
function fizzbuzz(n) { console.log((n % 3 ? '' : 'fizz') + (n % 5 ? '' : 'buzz') || n); }
You just made that dad look like a genius in front of his kids on there vacation. Instant respect.
His son watched your comment and now he again lost respect for his father 😒
@@vishal-pb9tk lol
@@vishal-pb9tk 😂😂
Bro I must be as old as the kids and I know 3 computer language now learing Java script it's not that amazing for an Indian
All of those were indian kids
@@imamangoo8632 Nice flex I guess
The first win is so wholesome, you made that family's trip significantly better and a one to remember!
I like how the dudes wife was just beefing with pride, safe to say he probably got laid that night.
Never knew knowing codes can get you laid, maybe I should put more effort
@@alvinvalentino5797 Only with Indian women.
@@alvinvalentino5797 in india it does lol
@@yuvraj7214 oh yeahh i can confirm that
As a beginner, seeing a problem that i can actually solve, makes me really proud of my self
Nothing tops this feeling
How long did it take you to reach the point where you could solve these problems?
@@tomd9170 1week
@@tomd9170 it doesn’t take you 1 week but you get the feeling of understanding the code once you start your classes. Once you see it, you can actually answer it. Also it depends on how the person asking you the question is. Make sure you ask them to clarify.
@@tomd9170 if you can state it in words like what to do then it can be done .The problem might be debugging but that another topic.
Next, ask people to find bug. I will send my project source code. :)
Edit: how on earth does this have 15k likes😲😲
🤣🤣🤣🤣🤣
😂😂😂😂😂😂😂😂😂man!
Man, you just need send the money😄
🤣🤣
Woo..... Mam good question
Wrong place to find "talented coders" you'd never find them outside roaming in bright daylight XD
They can only be found after sunset
I was just thinking I'd be a perfect fit for the video but then I realized I haven't been outside in 8 years
That's why they were searching outdoors
Thank god im not the only one like this. My roommates sometimes dont even know if im alive. They put candles in front of my door once. xD
@@ITech2005 😂😂😂
5:45 This guy is an honest man. He thanked his professor
I died laughing because the professor he thanked is a bit of a meme within the CS department at U of I. He is a good professor, but teaches the intro class for CS majors, and does a lot to be a "hip" professor. I thought it was just really funny to hear about Geoff Challen in a way that genuinely thanked him for once.
@@okcalphi HI OK CALPHI
Omg 😄 100$ for such easy questions ? Then I am thinking that there must be 1000$ price money for the questions of Graph and DP. Well one day I'll be in USA and winning these amount by solving such coding questions.
yeah, that was wholesome
"The experienced developer takes 100 USD from an unemployed TH-camr" is a more valid title.
That too he find the sum using 2 variable 😅😅😅
He took have give treat to him
lmao this is so funny comment. 🤣
The unemployed TH-camr is making dollar ever month with ad revenue, merch , affiliate marketing,social media shoutouts
😂😂😂😂😂
TH-camr makes more than a developer
That array question... me as a Python user:
print(sum(arr))
Agreed. As a clojure developer: (reduce + array)
I regret to inform you I just ruined the 69 likes
@@bernas_ lol
@@bernas_ 😂😂
Exactly the very first thing I thought of 😂😂
"Do you code? "
"No"
"Oh, that's a shame"
*Sigma male grindset uploaded*
I feel like the guy at the start impressed his own family. They were like “wow dads actually smart” lol
🤣🤣
Sometimes you need an opportunity to prove yourself !
He be like :- i am still worthy!
He is an indian and you all know how talented they're in engineering and science!
@@axeraazer1767 I mean unless you are saying Indian people have a certain genetic code that allows them to recognize certain information better than others? Then the statement you made seems stereotypical / offensive, there hasn’t really been any information proven to back what you are currently suggesting. One thing that has been proven, if any competent individual dedicates a lot of hard work and time into something they can become a master at it, regardless of rather you are Indian, white, black. It’s called “human potential” you may call it what you like but it has little to do with the pigment of someone’s skin.
Thanks for finally going outside with me
Nick pin the comment . thats what youtubers do
was this your first date or something? i mean that what you sound like.
Can you also host me in Chicago lol :)
Hahahaha
Loved it Kenny, you guys should probably do more videos like this
3:30 He made a mistake. The loop continue condition must be "i < arr.length". If the number is the last in the array, his function will return -1.
lol true, bro they should have made the challenges stricter, these guys getting $100 for shitty code
Never ask an indian guy into programming
Its like asking them if they want money
Well not all Indians know how to program however most of them do!
@@orcave8802 you will find millions of people for every rich job in india 🙂 one of them is software engineering.
@@vishal-pb9tk yeah it's not our choice to be a engineer until our mom or dad implants and forces us to do
Nobody focused on the second line in the replies lmao. @rin rin Gaming u a bish
@@orcave8802 No way most of them do. Like simple programming is different but only like 10% pursue computer engineering
missed opportunity, I used to live about a 5 minute walk from where you filmed this
Same!!!!
How do you comment on every video I watch.
alas 😂😂
@@gregoryyampolsky557 How do you watch every video he comments?
@@pr3287 amogus
Indian guy - "If you want to come to Accenture, please let me know"
Indians are unintentionally funny. Period. 😂
Nick: sees an Indian man
Also nick: you have some experience in coding?
lmao
And he won too 😂
😂😂😂😂😂
"How dare you ask me such a question"
@@artisticyeti22 "but yes."
I never thought you had legs, always thought you were just a robot with a torso
No legs gang.
Pretty sure that was just CGI
Lmao
Went 3/3. Great for my confidence. Sometimes when tackling larger projects, it is reassuring that you still have the basics.
4:11 The order of if statement is wrong. You should check both 5 & 3 first. Otherwise you'll never find if the number is divisible by 3 & 5.
Exactly, I was wondering if I'm the one whose dumb.
not only that...sorry but it hurts to see so much else if
Yes, some unreachable code there
that's why he's unemployed
@Yaseen Khawaja new function which has return text for console to log in each if...there are videos about not using else...or use switch...actually for this particular video for kinda simplicity it is ok...just not pleasant :)
The second one had a mistake in his loop condition. i < size - 1 will not check the last element. Should be either i
you would be right if the programming language's array indexes start at 1 but this language array index starts at 0
@@watch6565 if it's zero-indexed then it should not be "i < arr.length - 1" since the loop will break at the last index rather than the end of the array where the last index is "arr.length - 1".
@@watch6565 get the right info and then talk mate
🤓
I was searching for this
What the helping hand was trying to say to him and he didn't understand is that on fizzbuzz, instead of printing a line, just print. If % 3, then Fizz, if % 5 then Buzz. If it happens to be both, it will print FizzBuzz. If not either, print N. Always print a new line character. That way you don't need the "If % 3 and % 5"
next time do double or nothing and make them perform dijkstras algorithm on a directed graph
ah man , don't be so cruel with them
Gesundheit my good sir.
And knapsack algorithm too xD
Those are kids stuff, ask them to find min cost hamiltonian cycle
Or make them solve NP hard problems😂
"you know how to code?"
"U don't?"
"Ohhh! Thats a shame" 😂😂😂😂🔥
😂😂😂
hahahahaha
Sigma male....
lol
**normie probaly bullie woman with all skin body showing walking** yoU LoOk lIKe cODER
me as a woman coder: WTFFF THIS IS HOW YOU THINK WE ARE???
When I watched this video for the first time, I didn't even understand the question. when i watch this video again now i realized that the questions are simple
Same for me😂 I watched it 3 years ago. Then I watched it today. I would've also got $100 easily
2:11 The man got to look cool infront of his family ... wholesome 😊
But his son intrested in PUBG 😂🤣🤣😅
Man was visiting chicago wins 100 dollars😂
3:22 is incorrect. There should be i < arr.length. not: i < arr.length-1. In the video arr.length-1 is not included so if 7 was the last element of the array, code would just return -1 instead of arr.length-1.
But congratz on 100$ though
Was scrolling through to see if anyone else noticed that too haha
the count starts from 0. if you were to use i < arr.length you'd get a syntax error, because it would do one extra loop. So the video was correct and you aren't. 😎
@@JuhanPatt You are absolutely wrong. Correct answer is i
@@konstantinos7480 Lol yeah, my bad. Never skip sleep fellas.💀
Ofcourse an Indian guy had to solve this, its our second language 😂
I feel like indians get born with python built in then they learn the rest at the age of like 3
can you confirm ?
@@youssef-pz7sn confirmed, when I was born the doctor mailed a requirements.txt to my parents which they were supposed to pip install at the age of 3.
@@viraj_singh Very funny
@@viraj_singh You made me spit out the food in my mouth 🤣🤣🤣🤣
Also he had to use java xd
"If prof is watching, you did a good job teaching me." That's a good ass praise, would like to take some classes with him.
"I only know python"...
When writing literally one line is too much stress .
Nick: I’m unemployed
Also Nick: *gives away $100*
Unemployed !== Has no income
@@trashAndNoStar *ouch*
@@trashAndNoStar no shit
Omg 😄 100$ for such easy questions ? Then I am thinking that there must be 1000$ price money for the questions of Graph and DP. Well one day I'll be in USA and winning these amount by solving such coding questions.
TH-cam: am I a joke to you?
In the next video, show a pre-written code to common people and ask them tell what the code is doing. That would be fun. More non-CS people will be able to participate.
Omg 😄 100$ for such easy questions ? Then I am thinking that there must be 1000$ price money for the questions of Graph and DP. Well one day I'll be in USA and winning these amount by solving such coding questions.
@@imshivendra Are you what a 6 year old that you're spamming everywhere
The solution at 3:29 is wrong - it doesn't check the last element of the array because the for loop checks i < arr.length - 1 instead of just i < arr.length or i
Indians especially outside India are extremely knowledgeable peoples. They are very good at their professions.
That is why they are leaving India..
@@nikhilkumar-hj8rt lmao true 😂
@@nikhilkumar-hj8rt 😂
@@nikhilkumar-hj8rt I'm planning the same to do, Here you can't find much infrastructure in all places and the accessibility isn't great, the taxes on computer parts don't help either so yeah..., I mean if it becomes better ofc I'd be staying here
India is a great country if anyone outside India is reading this. But the only problem is corruption and too much reservation and less focus on creativity and more focus on marks. I wish all of this improved.
Nick: Do you know how to code?
Girl: No
Nick: Oh, that’s a shame
👀
That's why he does not have a girlfriend lol. I would say let me teach you for free. But you need to come to my place.
@@calfland79 He probably looking for some hottie who can code 😂😂
@@calfland79 Kinda sus for someone you're meeting for the first time.
@@seaweedglob yeah, I was onboard with the plan, until luring them to home came into it 🤔
@@calfland79 and you end up sounding like a creep like that
You made that family’s day. Must have been a fun experience.
The only thing that worths in this video
The fact that the first guy was offering you a job made me smile
JS solution: const ans = (arr, num) => arr.indexOf(num);
I was waiting for "Invert this binary tree" 😂
Which is much easier than it sounds :)
@@danielfalboyt how?
@@aniketmane6232
```
invertBinaryTree(root) {
if root is null: return
// swap left and right child
tmp = root.left
root.left = root.right
root.right = tmp
// invert children trees
invertBinaryTree(root.left)
invertBinaryTree(root.right)
}
```
@@danielfalboyt oh Inverting is actually swapping nodes.. right I was confused for a bit but yeah it's easier than it sounds
@@aniketmane6232 print("invert this binary tree")
thats all you need,
no need to thanks me man, bas agla interview fod dena
so Nick has got 25% more creative during the lockdown.
Awesome video format great to see coders getting outside 😂
Omg 😄 100$ for such easy questions ? Then I am thinking that there must be 1000$ price money for the questions of Graph and DP. Well one day I'll be in USA and winning these amount by solving such coding questions.
@@imshivendra Are you stuck in a while(true) loop? Or is there another reason for repeating yourself so many times in this thread alone?
Maybe you should exit at some point, or someone might break(); you.
I'm happy that the guy did the fizzbuzz correctly.
however you snippet at 4:13 has a bug.
you will never print "fizzbuzz" this way.
Definitely, it was one of the creative videos, hopefully, we see the next version of it soon.
3:31 he did < length-1 so he's not checking for the last element of the array
Wait this is wild, I saw this video a year ago and couldn’t understand a single question and thought coding was magic, now a year later after learning these questions are incredibly easy, woah.
Ahh nostalgic feeling listening to that indian dude explaining his code. 😁
I like this for the fact that you're not throwing out binary search tree or some shit that people haven't heard or seen, with this they can even write pseudo code or basic logic. Good work!
Omg 😄 100$ for such easy questions ? Then I am thinking that there must be 1000$ price money for the questions of Graph and DP. Well one day I'll be in USA and winning these amount by solving such coding questions.
3:40 yeah feels great "taxes"
4:45 when Raj (TBBT) comes up with a solution
Now this is some quality content
the last guy was the best, he thanked his professor. so wholesome! 😊
Do more of these my man
I agree!
that first man's excitement is contagious!
I started learning C, and I am quite surprised how simple those problems are. Some I encountered when making my own small projects.
1:47 there was no need to declare another variable b, you can just work with array indexing
it's the old school way. notice how he also declared i outside the loop statement. I notice that it's usually with older C programmers who declare unneeded shit upfront, and then remove them when refactoring later. I guess it makes sense if you read the book "The C Programming Language" (1978) by Kernighan & Ritchie, which was the bible of programming for several years. Same coding style in the book.
more inportantly in the for loop he puts i = 0 instead of int i = 0. So his code wouldn't even compile, on top of the other strange oddities that you mention.
@@stt.9433 He has forgotten that declaration is necessary in for loop in c.
well I believe he mentioned that he wasn't too much into coding lately?
Bruh, go to a tech school and ask them solve simple DFS/DP problems
Stewie 😂 buff stewie
1 month into my intro to coding class in C++. Nice to see 3 problems I can actually solve.
*my turn comes up*
nick : perform quick sort
me : omfg AAAAGGGHHHH
Just do it in Haskell, it's 4 lines of code.
If it's a $100 I'd dry run that shit till i got the solution. It's a 100 f***ing dollars!!
So cool how the last guy shouted out his professor
I like how he is sitting with a Binary Search problem at the end of the video and no one attempted to solve it 🤣
Lmao. And it's not even that hard😭
Fire video and the new camera is looking HOT
I didn't even know how to code a year ago when I first saw this video, now I can solve every problem! This is progress people!!
Next challenge: $500 to implement Tarjan's algorithm.
i will do it pay me
pay me
What does it even mean ?
@@criptik5208 That's Tarzen's younger brother Tarjan
XD I did that in my finals last month.
This is interesting, I have never seen other guys do this type of video.
the Code of the second Guy was wrong, by-one-error in the Head of the for loop. It has to be either i
Nick is tall guy, totally dominating the scene
Kenny be like - "You don't know how to code? Oh, it's a shame".
This is what happens when you go out as a Developer for the first time this is a real life "Hello world"
this is so cute i feel like those kids might even get inspired
3:30 i < arr.length-1, so correctly is i < arr.length.
Besides, the solutions do not say they look elegant, especially the first 2, i think.
"You guys don't know how to code?"
"Oh that's a shame"
Also see a normie looking probaly bullie woman: YOU LOOK LIKE A CODER TO ME
Dumb asf, we dont want to look like that. What a dumb sentence to make.
can we just stop a moment to give credit to the professor. I heard he's really good teaching his student to code
Well the studen looked very dumb doing that problem, but he managed to get it right
Omg 😄 100$ for such easy questions ? Then I am thinking that there must be 1000$ price money for the questions of Graph and DP. Well one day I'll be in USA and winning these amount by solving such coding questions.
3:29 That for loop will never check the last element of the array, though, so it doesn't even work as a solution. Should be i < arr.length
That dad's children was so proud of him, he probably he'll they hero cuz of this moment
I literally cried seeing the difficulty level of the questions if I lived there I would rushed to him
Legit my first month of software development courses would have taught me everything I needed to know for these.
The second person did a mistake in his for loop
For (int i=0; i
Naah arrays start at 0
@@pattywan923 Tell me something new !
They also used a comma instead of a semicolon, but I assume tiny mistakes like that doesn't really matter since they're forced to write it on a whiteboard
@@pattywan923 should have been i
@@pattywan923 remind you the whiteboard has i < n-1 not i
4:11
I actually solve this problem a week ago for our last task in ICT. It feels so great even though I'm just 2 weeks in programming. I also want to pursue computer science cause once I printed "hello world" I feel that computer programming is my destiny.
Be aware that the example he showed it's wrong, sorry for being 1 month late to tell you this. If the number is divisible by 3 or 5 the code will just print "fizz", when it should print "fizzbuzz", and that's because he used else if
Omg 😄 100$ for such easy questions ? Then I am thinking that there must be 1000$ price money for the questions of Graph and DP. Well one day I'll be in USA and winning these amount by solving such coding questions.
As a programmer, this is my first time seeing a beautiful content of programmer. We are specially introverts but when a programmer goes outside and making fun in crowd, that makes me goosebumps and smile.
Only the part of the man with his family worths, telling the normies looking woman the look like a coder made me wish i was deaf, then i didnt even finish the video lol
2:19 this is the exact timing of the thumbnail.
Nick's eyes looking so sleepy, feels like he's just solved 50 hard leetcodes in a day.😂😂
"You don't? Aw that's a shame."
"Alright, you blew your shot."
(...we could've been good together)
Also see a normie looking probaly bullie woman: YOU LOOK LIKE A CODER TO ME
Dumb asf, we dont want to look like that. What a dumb sentence to make.
In JavaScript
let Array =[45,65,6,78,632,66,74];
function add(arr){
let sum=0;
for(let i=0; I
It would return 966
Lol so weird seeing Nick standing up straight, like he has legs 😂😂
The most hilarious thing this that the code that is displayed on the screen and in the thumbnail for the fizzbuzz problem is incorrect.
Take the number 15, if you pass that number into the function, the first thing it will check is if the number is divisible by 3, since it is it will print 'fizz' and that's it. The function will end even though 15 is divisible by 3 and 5. You have the wrong ordering of if statements if this is the way you want to do it.
That’s very true. The way I would do it (Java) would be: (sorry in advance if the formatting gets messed up. I’m on mobile)
Public static void fizzBuzz(int num) {
if (num %3 == 0){
system.out.print(“fizz”);
}
if (num%5 == 0){
system.out.print(“buzz”);
}
system.out.println();
For those who don’t know using print instead of println means that the next thing to print will be on the same line so fizz and buzz would print out as fizzbuzz if num satisfies both if statements.
I love the first family. Nothing but genuine admiration from the daughter with the cheetah headband. Super cool.
Very smart of you to hold such quiz because programmers barely step outside their room.
1:20 Accentuate is one of Indian IT company.
2 errors on the 3:21 First: the FOR statement should be i< arr.legth not i
When Nick says in the IG livestream "this is gonna be a good video", trust him
After 15 years, he still needed two variables to calculate sum of array elements
Lol, glad someone pointed that out.
best practices back then die hard. people used to declare a bunch of shit and just remove them later. i often see it with old C devs
He also forgot to declare i
"Easiest hundred dollers of your life..."
Dude, that was a wholesome harsh brutal truth right there. If only I knew how difficult will be each hundred dollers off my coding jobs would become, I'd never do down that path 🤣🤣
for the second challenge I think the code is wrong the loop would be like this,
for(i=0;i
nick: "hello stranger, are u a tourist"
him: "yes I am the tourist"
nick: "what do u mean by the tour- ....... oh my god no"
Underrated. (not tourist of course)
Someone needs to explain this to me
@@girl5222 tourist (Gennady Korotkevich) is a programming prodigy.
For items in array:
While(True)
If ( items % 5 and item %3):
print (‘Fizz Buzz’)
else:
print (‘I have no clue wtf I’m talking about)
Ancient people say: When Indians were born, they spoke java before Hindi.
NOT all speak Hindi as their mother tongue LoL 😆
Meanwhile in Whitefield : Solve this dp prob and get 100 Rs
Second guy made a mistake in condition for for statement :) should be i < arr.lenght or i
Please record another one of these! Please! or make it a series I swear this is so fun to watch.
(maybe ask the participants more than 1 question and see how well there are doing at the first one, if they are doing great and seem to be quite good, ask them a question that's a little harder than fizzBuzz or SumOfArr)
One of the most entertaining videos I have seen in a long time!
(Please wear a mask when you go into a store)
Omg 😄 100$ for such easy questions ? Then I am thinking that there must be 1000$ price money for the questions of Graph and DP. Well one day I'll be in USA and winning these amount by solving such coding questions.
This made my day, thank you for sharing! .. also that Mardy Bum at the end was a nice touch 👌🏼
This is the first time I've head Mardy Bum outside of listening to Spotify by myself
I'm over here trying to understand how to invert a binary tree and then you come with these questions that you can solve directly with a bit of thought. I wish I was in the place of these guys
TBH the questions were the most basic ones. A high school kid would have solved them.
Lol idk how to do fizz buzz but the other two were easy
Not too sure about that😅. Could you suggest how and where to start coding for a beginner, no scratch that, for a baby please. I have no clue about this. I don't even know the difference between coding and programming
@@aashishsharma9106 i feel you man. Starting is so hard idek where to begin. Learning all the variables, syntax, logic, ahhhh. Mind boggling for me 😫
@@aashishsharma9106 you can take 100 days of code bootcamp by Angela yu on udemy.
@@lasyapriya7278 hey i have taken the same course,it's amazing so far... I love her voice