Coding Interviews Be Like

Поделиться
HTML-код
  • Опубликовано: 15 фев 2021
  • Coding interviews are hard. But why grind LeetCode, study data structures and algorithms, and read Cracking the Coding Interview when you can simply "throw a hashmap at the problem"?
    This video may or may not be based on a personal experience...
    This is a different type of video from my usual content, let me know what you think about it!
    If you're reading this, comment "Facezongoogappflix"
    #codinginterview #softwareengineering
    Sub Count: 424
    Check out these videos:
    Computer Science Majors Be Like- • Computer Science Major...
    First Semester of Waterloo Computer Science- • First Semester of Wate...
    It's Finals Season- • It's Finals Season | U...
  • ПриколыПриколы

Комментарии • 5 тыс.

  • @nicholast
    @nicholast  3 года назад +25644

    this was actually based on a personal experience

    • @nicholast
      @nicholast  2 года назад +771

      @@AndrewCheetah no way!

    • @firestarter000001
      @firestarter000001 2 года назад +319

      The code looks like Java, do the questions in your area for Java Developers really look like this? Im from Poland, but I often aslo apply to international companies, and those mathematical problem solving seems a thing of the past here , assuming we are talkign about bussiness software. 10 years ago it could happen (i remember when Codility was very popular here, many problems were a variation on quicksort...) , but nowadays its usually just a lot of knowledge checking : some basic Java questions,.Java 8 constructs alwys, design patters, frameworks (Spring , hibernate etc.), webservices,SQL and no SQLdb , javascript, coding theory SOLID etc. , maybe they give you some code to review. I actually think its a better approach because that relates much more to what you will do at work with bussiness software. Unless you apply for games software or some niche science projects, I guess, but its rare with Java.

    • @firestarter000001
      @firestarter000001 2 года назад +297

      But as to the point, yeah, the mutistage interviews are really frustrating:). You tought you made it , but it turns out it was just the mid level boss:)

    • @MillandeepSingh
      @MillandeepSingh 2 года назад +56

      Did you pass the other interview 🙄

    • @nicholast
      @nicholast  2 года назад +356

      @@MillandeepSingh im pretty sure i passed because i got the optimal solution, but didn't get the offer 😥

  • @bluegizmo1983
    @bluegizmo1983 2 года назад +54910

    Bombshell: they're not actually interviewing you, they're just stuck on a code problem and want a free solution! 🤣

    • @nicholast
      @nicholast  2 года назад +6694

      haha i've seen startups give take-home projects that just look like work they need someone to do for free😂

    • @BeanyB0b
      @BeanyB0b 2 года назад +952

      lol, they need help solving two sum for important business reasons. nobody else has been able to solve it to date

    • @ezraodole933
      @ezraodole933 2 года назад +35

      XD

    • @alan99yu
      @alan99yu 2 года назад +17

      LOL

    • @pokedart9001
      @pokedart9001 2 года назад +660

      No shit this is actually kinda what one of the questions I was asked for my current position was - he basically just wanted my input on how I might go about solving a real problem he was working on, it was actually pretty neat

  • @Sky4Jus
    @Sky4Jus 2 года назад +21317

    "Do you think you could make it faster?"
    "Nah, I'm good"

    • @nicholast
      @nicholast  2 года назад +3397

      “You’re hired!”

    • @ThiagoRibeiroo
      @ThiagoRibeiroo 2 года назад +258

      underrated comment lmaoo 🤣🤣

    • @nateF888
      @nateF888 2 года назад +175

      Your pfp fits ur comment perfectly 😂

    • @domr4879
      @domr4879 2 года назад +29

      Lmao

    • @errhka
      @errhka 2 года назад +436

      Me, a pragmatist: "get better hardware"

  • @simonanikolova1719
    @simonanikolova1719 2 года назад +5001

    In my coding interview, I realized I could use a hashmap to solve one of the tasks. Then I remembered this video. I smiled and became less nervous. I passed the interview. Next week is my second interview. It is for my dream intern position. Wish me luck, guys

    • @JohnDoe-yq9rt
      @JohnDoe-yq9rt 2 года назад +175

      great, have fun making apps to make some jewish guy rich :-)

    • @joonorganic
      @joonorganic 2 года назад +48

      HOW DID IT GO

    • @simonanikolova1719
      @simonanikolova1719 2 года назад +395

      @@joonorganic Thank you, It went perfectly. Also, I had one more interview with another company and a hashmap saved me again :D

    • @simonanikolova1719
      @simonanikolova1719 2 года назад +637

      Update : I got an offer from both companies. Learn your hashmaps and good luck to everyone!

    • @joonorganic
      @joonorganic 2 года назад +103

      @@simonanikolova1719 AYY WE SO PROUD OF U

  • @brunomillalaf8553
    @brunomillalaf8553 2 года назад +2171

    I studied coding and struggled during the interviews. Now I’m a full time burger developer at McDonalds.

  • @peacelove6455
    @peacelove6455 2 года назад +17760

    "That....should work?"- Every Programmer

    • @maxhughesgray2591
      @maxhughesgray2591 2 года назад +384

      Yeah, you go through every situation in your head and something still goes wrong.

    • @jeremysutherlin7565
      @jeremysutherlin7565 2 года назад +633

      99 little bugs in the code, 99 little bugs. Take one down patch it around, 437 little bugs in the code!

    • @maxhughesgray2591
      @maxhughesgray2591 2 года назад +100

      @@jeremysutherlin7565 99 bugs and a segmentation fault ain't one.

    • @10thing7
      @10thing7 2 года назад +6

      😂😂😂😂😂😂

    • @metehanfirat3446
      @metehanfirat3446 2 года назад +3

      We made a pong game in Python using the Turtle and Freegames libraries. ruclips.net/video/QPKOBeNwRbk/видео.html

  • @haseebazam7164
    @haseebazam7164 2 года назад +11777

    Don't forget the part where they say "Good, now we'll move on to a hard problem"

    • @nicholast
      @nicholast  2 года назад +1010

      that would've been good

    • @creeks123
      @creeks123 2 года назад +35

      @@nicholast Teach me the ways.

    • @praharshsingh2095
      @praharshsingh2095 2 года назад +19

      :This is Fine meme

    • @metehanfirat3446
      @metehanfirat3446 2 года назад +6

      We made a pong game in Python using the Turtle and Freegames libraries. ruclips.net/video/QPKOBeNwRbk/видео.html

    • @coolgeYuhang
      @coolgeYuhang 2 года назад +7

      be like , let me find HARD one in the leetcode and this will be a problem for next interview

  • @ameyb9241
    @ameyb9241 Год назад +383

    I got hired for my first job in an IT company on my first try a few months ago. The interview guys were very chill. The HR asked about my life experience s and my side hustles along with studies. The technical guy asked questions about Java, Android development stages and later on, Angular (which I didn't know much about). Moved to a new city now and the working environment is great. Such interviewers are awesome.

    • @janusztarnowski115
      @janusztarnowski115 Год назад

      Simple Application Enter your details
      ruclips.net/video/DWn5-Ej8R-M/видео.html

    • @Pureperfect0123
      @Pureperfect0123 5 месяцев назад +11

      Have a good life then mate

    • @ggsap
      @ggsap 4 месяца назад +1

      What was in your technical interview?

    • @dontforgettonerfthepig3322
      @dontforgettonerfthepig3322 3 месяца назад

      And what's the name of a company?

    • @philinh9169
      @philinh9169 2 месяца назад +1

      Which role did you apply for?

  • @personxyz1840
    @personxyz1840 2 года назад +414

    This was my real experience, started interviews past 2 weeks rejected by 3 and counting. Each rejection is an experience and become better I am sure I will get through this phase.

    • @personxyz1840
      @personxyz1840 2 года назад +73

      Glad to inform got 3 offers and played salary matching game. I got my expected salary but not landed in tier 1 companies. I will continue preparing leetcode and land in tier 1 company. My salary increased more than 30%(TC - 210K).

    • @Ryan-ul7dy
      @Ryan-ul7dy 2 года назад +6

      @@personxyz1840 Congrats! So you already had some experience as a developer and was just switching companies?

    • @personxyz1840
      @personxyz1840 2 года назад +17

      @@Ryan-ul7dy Yes!! Lots of Experience I was out of job search market for long time.

    • @sree00
      @sree00 Год назад

      ​@@personxyz1840 Hey could you please tell a little bit about what you said for the salary matching part

  • @needmusicnow7
    @needmusicnow7 2 года назад +10952

    Do I know programming? No.
    Do I understand the jokes? No
    Have I been marathoning all these videos and somehow loving them? Absolutely

    • @nicholast
      @nicholast  2 года назад +456

      glad you like them and hope you learned something from them haha :)

    • @alfonsopinto1859
      @alfonsopinto1859 2 года назад +29

      sneaker heads be like

    • @opatechnus
      @opatechnus 2 года назад +19

      i think interviewing candidate just based on algorithm solving is just stupid. In work 90% of employees will never encounter this. And things you want to test are untouched.

    • @Mothuzad
      @Mothuzad 2 года назад +24

      @@opatechnus That's a strange reply to the root comment.
      Anyway, if it's a good interview, the algorithm skills aren't meant to be a reflection of practical work, but rather, it demonstrates fundamental skills that are required to do good programming in general. A typical coder shouldn't spend much time optimizing, but they should at least not write code that's absurdly inefficient, and avoiding those pitfalls should be so natural that there's never even a conversation about it. That's why these kinds of technical questions are seen as a bare minimum for hiring.

    • @loganhh1043
      @loganhh1043 2 года назад +6

      Sad thing is I understand a bit like I can read the code and know what it’s doing but I didn’t do hash map or at least do it enough to remember a damn thing on it

  • @sb-jo2ch
    @sb-jo2ch 2 года назад +16294

    I was literally asked the same question that I had solved the previous night, word for word. I deliberately started writing a naive approach, then halfway through that, pretended like I had just got a revelation, commented out the naive code and barfed up the O(n) solution like a freaking genius. Code worked.
    Didn't get the job.

    • @nicholast
      @nicholast  2 года назад +2693

      LOL good try tho

    • @waltwhitman7545
      @waltwhitman7545 2 года назад +371

      damn you should have

    • @kekag
      @kekag 2 года назад +1546

      @@hebariaz6134 It's not very difficult to tell when people act like they don't know something. The interviewer is generally more concerned about the thought process and ability to solve a problem they don't already know the answer to.

    • @mxd1232
      @mxd1232 2 года назад +94

      Why would You do that though?

    • @Pharoah2
      @Pharoah2 2 года назад +1996

      @@kekag yep. Theyre not testing memory. If you’re going to pretend you havent seen the problem (which is a good strategy) you cant just “have a revelation”. Sell the thought process. Write up the pseudocode for the naive approach and then say there’s definitely optimizations that can be made. Sit and think. Think aloud. Walk through logic that would lead to those “revelations”

  • @RealitaetsverweigererDerAmpel
    @RealitaetsverweigererDerAmpel 2 года назад +705

    I'm a german software engineer working at a big company developing MASSIVE software (over 80 million lines of code) and i've never had a "coding interview" lol. Also i think that understanding problems quickly and knowing where to find the information you need is a far more important skill than explaining a sorting algorithm when you've done nothing else but learning them for the last couple of days. When you work and don't refesh your sorting algorithm knowledge you forget 95% of it after a few weeks anyways and even then you can just google it. Not something to differentiate good coders from bad coders imo. Using the best optimal runtime algorithms possible is pretty important but as i said.. you can just google it, it's just important to have heard it once and to know that it is a thing.

    • @shaunreich
      @shaunreich Год назад +38

      The funny part is, for 90% of the use cases, you're doing it wrong. It's the same thing with security, don't reinvent the wheel, your wheel won't be as round, the stdlib of any language you're using has a much better sorting algorithm than you will be able to make (they actually use a combination and heuristics and can even run in parallel)

    • @unutilisateurdeyoutube1256
      @unutilisateurdeyoutube1256 Год назад +3

      Yes sir, I think you're right.

    • @armin3057
      @armin3057 Год назад +11

      yeah but in germany its hard to get a job without a degree, in the US you can at least do that with one bootcamp

    • @shabsukkar
      @shabsukkar Год назад +1

      hello sir can i talk with you

    • @marinero.bengali2
      @marinero.bengali2 Год назад +5

      100%, if you are on your third or second year of your degree you probably are going to remember this better than somebody that got the degree 7 years ago and has 10 years of experience xD

  • @amyb2589
    @amyb2589 2 года назад +26

    This was actually just helpful for me to have some different ways to look at this problem! Thank you!

  • @mirelvtl8830
    @mirelvtl8830 2 года назад +3472

    Dude when the interview started I felt like I was the one being interviewed. I felt that fear in me

    • @nicholast
      @nicholast  2 года назад +346

      😳😳 coding interviews are so nerve wracking that they can be felt through a screen 😂

    • @mryzarc8
      @mryzarc8 2 года назад +7

      I share that feeling

    • @AmanDeep-rk6je
      @AmanDeep-rk6je 2 года назад +28

      @@nicholast your video just scared me for my future , I m gonna start my term in fall this year in computer science major

    • @sonicbroom8522
      @sonicbroom8522 2 года назад +5

      @@AmanDeep-rk6je Don't be scared. There are other companies besides Google etc.

    • @blitzedoblivion4280
      @blitzedoblivion4280 2 года назад +5

      Cam??

  • @thereasonableprogrammer4921
    @thereasonableprogrammer4921 3 месяца назад +73

    I first saw this video a couple of years ago. I had never solved a leetcode problem and it was all gibberish to me.
    Now, every single thing makes sense and are intuitive solutions. Never give up, keep up learning and trying with your Leetcode!

    • @prakriti7571
      @prakriti7571 25 дней назад

      can you tell me how you started leetcoding... it actually makes no sense to me and I am always afraid to start

  • @jeromesimms
    @jeromesimms Год назад +60

    I remember the first time I watched this video over 6 months a go as a CS freshman I didn't even know what a HashMap was much less anything regarding time or space complexity but now I have been pleasantly surprised that I understand everything in this video now

    • @andrewhinson4323
      @andrewhinson4323 Год назад +4

      me too, but I sure as heck cant converse comfortably like that XD

    • @CallMeDeeWee
      @CallMeDeeWee Год назад +2

      This is me now, I hope to be back in 6-9 months to see the progress that I will have

    • @natasdabsi1138
      @natasdabsi1138 Год назад

      Give me 6months

    • @josephubi9096
      @josephubi9096 Год назад +1

      Could you please help with materials or a guide on how to learn these things in their order of
      importance and according how I will need them to advance my learning.
      I just started out and have not being making enough progress because I don't have a streamlined
      learning pathway to teach myself all the necessary things I need to become a software engineer.
      Please kindly help with resources if you can, I can't afford college.

    • @jeromesimms
      @jeromesimms Год назад +2

      @@josephubi9096 Hey, sure. It really depends on where you're at currently and what you are trying to do within the field of computer science; whether it is web development, game development, data science And AI, or becoming a back end web developer.
      However regardless of what you want to do, having a good foundation is very important. So I'm order to learn the basics of how to program I would recommend learning python as it's quite beginner friendly, although personally my first programming language was C and looking back it was definitely a great foundation but extremely hard to pick up at first. So in order to learn the basics of programming with python I would recommend the course Python for Everybody (you can find it on Coursera, edX and even RUclips) because it will start off slowly introducing you to simple topics but by the end of it you will know how to use python to parse a web page and make requests to an external API.
      After you learn the basics of programming with python, I think you should switch gears and learn a bit of web development by learning html, css, and JavaScript. A good resource for that is freecodecamp.org or even the Odin project which you can find online. Once you do that you should have a good feel for the basics of programming. Reading computer science textbooks can also help too and then you can decide what you would like to build next. I hope this helps you.
      In fact, here is a link to a GitHub repository that gives an alternative line of courses for you to take: github.com/ossu/computer-science

  • @1314pankaj
    @1314pankaj 2 года назад +6433

    I own an IT company. When we take interviews we allow candidates to use Google or any other resource. We hire people even though they failed technical. The most important thing for us is willingness to learn.

  • @milos5247
    @milos5247 2 года назад +4725

    Throwing a hashmap at the problem when you're stuck is actually pretty good advice, it's a powerful structure that will save your ass many times.

    • @nicholast
      @nicholast  2 года назад +303

      facts

    • @titord6031
      @titord6031 2 года назад +109

      What is a hashmap?

    • @milos5247
      @milos5247 2 года назад +299

      @@titord6031 a collection of key-value entries, also known as just map or dictionary.

    • @Loachie90
      @Loachie90 2 года назад +83

      @@titord6031 hashmaps are like unordered sets in the mathematical world. Lookup times are O(1), but only unique key values are allowed.

    • @TheChangeYT
      @TheChangeYT 2 года назад +7

      But you have more data plus you need to hash everything right?

  • @aylith663320
    @aylith663320 Год назад +34

    The main thing to take away from these interviews is that you will always be questioned on your solution to the problem. Invariably you will be able to improve it to some degree, the interviewer just wants to see if you know how. From my experience when I didn't know something it wasn't a bad thing, it was just a way to find the extent of my knowledge. I got good feedback about my solution after the interview and got the job. So when you are in this situation be calm, do the best you can and if you don't know something then don't worry about it, worst case scenario is you don't get the job and you never see that interviewer again.

  • @MultiBillionaire_Motivation007
    @MultiBillionaire_Motivation007 Год назад +1

    This is way of showing people how tech interview works with kind of melodrama is brilliant idea wise, appreciated 👏

  • @kered13
    @kered13 2 года назад +12427

    As an interviewer: This is 100% accurate. However, don't waste time coding the slow solution. It's fine to mention it, but if you know a faster solution go straight to that before coding.

    • @dhruvakhera5011
      @dhruvakhera5011 2 года назад +58

      nice

    • @nathanfisher9933
      @nathanfisher9933 2 года назад +13

      @@dhruvakhera5011 nice pfp

    • @djtecthreat
      @djtecthreat 2 года назад +425

      Came for this comment. Put your best foot forward, I'm looking at you as a complete candidate who tries to solve problems the best way you know how. Much better than a fake crappy approach just because you know the "can you improve this?" question comes next.

    • @mdouet
      @mdouet 2 года назад +174

      While I agree with this, that was the interviewer's fault for asking him to code a brute force solution instead of asking for an optimal solution before he started coding.

    • @whereDoCarrotsComeFrom
      @whereDoCarrotsComeFrom 2 года назад +144

      @@mdouet he never said brute force or slowest, the interviewer just asked for a solution

  • @anad.1594
    @anad.1594 2 года назад +9970

    New comp sci student here. I either will be back in a few years to say “haha, true” or I’ll have changed careers. Regardless, great vid.

    • @dianna9182
      @dianna9182 2 года назад +384

      feeling the same way lol !! it’s my first year and i’m watching all these

    • @Sid-xt3kt
      @Sid-xt3kt 2 года назад +47

      Same here haha

    • @gc1087
      @gc1087 2 года назад +229

      Lol. After I graduated and tried to get a job. I changed career fields and went to IT/Engineering. Software developer interviews are so garbage. Good luck!

    • @darthvader9851
      @darthvader9851 2 года назад +150

      Same 1st year cs here, i can barely comprehend the code lol,

    • @sumairakhan9980
      @sumairakhan9980 2 года назад +52

      @@gc1087 i was thinking of going into project management. i think its where my skills r best applied n i know im not gonna be a genius coder prob j average

  • @pickledpenny604
    @pickledpenny604 2 года назад +210

    As someone who is only a couple months in to learning, this absolutely terrifies me lol

    • @superpantman
      @superpantman 2 года назад +20

      I’m new to coding but I honestly doubt unless you’re going into a very lucrative role they would ask this type of question under pressure. As others have said, no decent code is produced in 5 minutes and certainly not under pressure.

    • @durza9390
      @durza9390 Год назад +11

      Don't stress it luv, plenty of opportunities to learn and do not be affraid of failures. Simply learn from them and continue your journey :)

    • @maple_vanilla
      @maple_vanilla Год назад +4

      @@durza9390 lol is it a failure if I can't even get hired for IT support/office work. Can't find shit for an entry level job 😭

    • @anunknownperson4018
      @anunknownperson4018 Год назад +6

      Same 😢 im a beginner in coding and it terrifies me

    • @ICxrsedII
      @ICxrsedII Год назад +1

      @@anunknownperson4018 sameee

  • @simplehonestmusic2261
    @simplehonestmusic2261 Год назад +20

    So the trippiest thing is one year ago I watched this video when I was researching pursuing a career in coding, and now one year into learning to code I am slowly learning about Hash maps, and watching this video again, I actually, to an extent, understood what you were talking about!

  • @Jokamutta
    @Jokamutta 2 года назад +2551

    I thought it would end like "Thanks for fixing our coding problem. Thanks, bye!"

    • @nicholast
      @nicholast  2 года назад +183

      that would've been good 😂

    • @NotAMystery
      @NotAMystery 2 года назад +6

      Exactly what I was thinking!

    • @ieaturanium574
      @ieaturanium574 2 года назад +29

      If solving one problem for free for them would be annoying, imagine working for them making maybe tens of thousands while they potentially make billions off of your work, and you're not even allowed to work anywhere else

    • @LaughingBearGames
      @LaughingBearGames 2 года назад +7

      I always imagine that’s how these go. You’re actually solving bug tickets for them in prod.

    • @Jokamutta
      @Jokamutta 2 года назад +1

      Wow so many likes! Ty guys hah :D

  • @isaiahdeck8747
    @isaiahdeck8747 2 года назад +4752

    When you’re in your third year of being a computer science student and don’t understand a word being spoken🥲

    • @Brormable
      @Brormable 2 года назад +519

      Wait, im on my first and understood most of it without doing anything prior to uni

    • @vishrutaggarwal5090
      @vishrutaggarwal5090 2 года назад +209

      You must have not started with dsa

    • @nicholast
      @nicholast  2 года назад +509

      😳😳

    • @someguyslastname8487
      @someguyslastname8487 2 года назад +455

      Start doing problems NOW

    • @Baozahh
      @Baozahh 2 года назад +371

      Change majors lmao

  • @Charles-sy7ej
    @Charles-sy7ej Год назад

    Dude! This intro is priceless!!! Just getting into web development wanted to know what coding interviews are like and this is the first video yt recommended!

  • @algorithmist5620
    @algorithmist5620 Год назад

    This is a great video ! Not only funny, but I actually learned something too.
    I wouldn't have thought of that hashmap solution

  • @Arcvx
    @Arcvx 2 года назад +3739

    I know this is supposed to be for entertainment but as a CS student this just makes me wanna die and dread having to do an interview like this lmao

    • @mightytgaming3
      @mightytgaming3 2 года назад +226

      Bro I thought I was the only one 🤣😭

    • @Alyzbane
      @Alyzbane 2 года назад +209

      I'm only freshman and worries always filled me

    • @albertocalabrese2958
      @albertocalabrese2958 2 года назад +357

      Only FAANG does this. For Junior positions, smaller companies ask you more about logic, some questions about CS knowledge like polymorfism etc. They also ask you to solve real-life problems so they can see if you're willing to learn and if you actually ever wrote a line of code. Don't worry too much ;)

    • @aduhaneh1057
      @aduhaneh1057 2 года назад +156

      for junior engineers i recommend practicing easy - medium problems leetcode (they have filter for top interview questions) as you work on harder problems you will learn more neat techniques. don't wait till you graduate, especially if you're aiming for top companies, though if u aim for small companies I'd still recommend you practicing in case you change your mind (never a bad thing to keep options open).

    • @AonyjsViolmlar05
      @AonyjsViolmlar05 2 года назад +8

      @@aduhaneh1057 even though i already have experience as developer this kind of stuff will surely improve my skill. Thanks for the idea.

  • @RoMD
    @RoMD 2 года назад +3930

    I literally have no idea what he’s saying for this entire clip. 😂

    • @nicholast
      @nicholast  2 года назад +795

      me too

    • @danielpaulo2119
      @danielpaulo2119 2 года назад +92

      Just keep following the script

    • @brozobronze9821
      @brozobronze9821 2 года назад +176

      Same here....and im a 3rd year I.T student

    • @clarisse603
      @clarisse603 2 года назад +67

      First year Computer Engineering student here, and surprisingly I understood everything he said owo

    • @shaunguo1165
      @shaunguo1165 2 года назад +40

      @@clarisse603 Basically just data structure and algorithm plus something like dynamic programming ?CE major here too, and I only got to these during my second year cuz I didn't take useful APs 😭

  • @leonng9926
    @leonng9926 2 года назад

    Good job Nick. Always a easy way out of all the problems

  • @TheScottishDad
    @TheScottishDad 2 года назад +278

    Software engineer here - I didn't follow all of that.
    I have been writing code for almost a decade now across several large companies using a variety of frameworks and languages. All I can say is that not once in my career have I ever had to solve anything like this.
    I've also hired developers in on my post as a dev manager and scrapped the tech test as my first move. I care more about their ability to learn and attitude than how well they can remember academic-type questions and answers. They need to understand code and how to solve problems, but I'd rather have a someone on the team that can pick that up quickly and can demonstrate some fundamentals than someone who can rattle off 'coding exercises'. The reality is, most jobs are bug fixes and you'll likely never encounter such BS

    • @USFighter
      @USFighter 2 года назад +12

      You've never worked for big tech like Google, Twitter or Facebook. I agree with you. Im a senior software engineer for about 7 years and a database administrator before that. When I interview, I throw out a couple feelers to make sure you can code but never anything like this. I usually stick to past experiences and let them know what our past current and future projects might be and ask them for insight on how they would handle some of the issues I've had or foresee. I have never had a bad hire using those methods (I've hired 10 developers in my career all have been with me over a year and did fantastic work)

    • @GrantH2606
      @GrantH2606 2 года назад +1

      @@USFighter I'm 27 years old, haven't held a job in years and got a bit lost in life. I feel like I want to go the software developer/engineer route. Where would you suggest someone like me with near to none experience should start?

    • @howardbaxter2514
      @howardbaxter2514 2 года назад

      @@GrantH2606 first off, what are your interests?

    • @GrantH2606
      @GrantH2606 2 года назад

      @@howardbaxter2514 I do not know what my interests are career-wise, I just know labour isn't it. Idk how I'm supposed to know what my interests are...

    • @thenerdofalltrades8190
      @thenerdofalltrades8190 Год назад +7

      @@GrantH2606 Ideally, you’d find a career in something that interests you. So what do you like doing? How do you spend your free time? If the answer is “playing video games,” it’s unlikely you’ll get a job doing that, though it is possible, but maybe you want to get into video game design. You have to do a lot of research, find RUclips videos on careers in fields that interest you, and see what the jobs are like. I know people in their 50s that still haven’t figured out what the hell they’re doing. Try not to stress about it too much, and try different things if you can.

  • @meganlukes6679
    @meganlukes6679 2 года назад +3796

    I’m terrified of the coding interview. I’ve always had horrible performance anxiety, once someone’s watching me my mind goes blank. During a practice coding interview with an instructor he had to remind me that for loops are a thing 😭

    • @AmanDeep-rk6je
      @AmanDeep-rk6je 2 года назад +96

      I feel the same thing 😭

    • @RocketVet
      @RocketVet 2 года назад +242

      I was in a pricey bootcamp and didn't have much further to go with it. I wasn't enjoying it at all. Learned to hate coding when trying to make it a more serious career. Once I found out how the interview process worked and what to expect I was done - dropped out and went and changed careers again to something else I like better. Happy I did! Landed one of my other dream jobs.

    • @considerphi
      @considerphi 2 года назад +113

      Just practice with someone (who codes) watching you code. Practicing control of your anxiety and mind state is half the battle.

    • @Pulsed101
      @Pulsed101 2 года назад +40

      @@RocketVet What did you change too?

    • @RocketVet
      @RocketVet 2 года назад +101

      @@Pulsed101 I hold certifications in personal training, health, coaching/CBT. I went into social work doing life coaching classes and case management. Feels great helping people again!

  • @jesselangham
    @jesselangham 2 года назад +1496

    I've been a software developer for 16 years. I've been through plenty of code interviews and I've almost never given the best solution. Know why? Because nothing I've done of any quality is done inside 45 minutes. I just don't stress the first pass. If they're looking for perfection after 45 minutes, they're just looking for people who probably already got the correct answer online beforehand.

    • @nicholast
      @nicholast  2 года назад +314

      they just wanna know if you've been grinding your leetcode 😂

    • @marcuscasagrande7596
      @marcuscasagrande7596 2 года назад +12

      I think I will just say that on my next interview, actually. Thanks!

    • @d3ly746
      @d3ly746 2 года назад +20

      @@marcuscasagrande7596 tell us if you got the job lol

    • @culhwch4168
      @culhwch4168 Год назад

      Why did you quit the career?

    • @BigBrother4Life
      @BigBrother4Life Год назад

      God bless you, you seem to have a nice family.

  • @ih8r2
    @ih8r2 Год назад +2

    was first watching for leisure before my technical interview. and I did get stuck, and that line came into my mind - "Throw a HashMap to the problem" and it worked! Coming back here to say Thank You as the HashMap solution really saved my ass!

  • @40NoNameFound-100-years-ago
    @40NoNameFound-100-years-ago Год назад

    I have really learnt alot from this video, Nick 😃👍

  • @warrior100girl
    @warrior100girl 2 года назад +1802

    The joke is. After this you will never ever do anything like this again. Because most of the time you will develop some restAPI.

    • @kern6365
      @kern6365 2 года назад +83

      well thats only for backend, as a FE, I never built a single API endpoints in company tasks lol, neither did I encounter and stuff like interview questions again in my years of career

    • @nicholast
      @nicholast  2 года назад +891

      *studies data structures + algorithms for months*
      gets paid to center divs

    • @soluna1679
      @soluna1679 2 года назад +169

      sorry but your div fucked up the whole site

    • @nicholast
      @nicholast  2 года назад +215

      bruh moment

    • @PaulMcCannWebBuilder
      @PaulMcCannWebBuilder 2 года назад +130

      @@nicholast As a CSS specialist, I've been centering div's for 20 years. Except these days the styles are declared somewhere in a HashMap.

  • @carlocorallini9090
    @carlocorallini9090 2 года назад +728

    Me who just started to learn about for loops:
    "I like your funny words magic man"

    • @kitcat2449
      @kitcat2449 2 года назад +3

      ...what return new int[] {i, j} does...returns an array with... i and j? But what's that "{ }" :'D

    • @T355V
      @T355V 2 года назад +2

      @@kitcat2449 "i" and "j" are the elements in the array! the curly brackets just show that those are the elements

    • @kitcat2449
      @kitcat2449 2 года назад

      @@T355V thank you! I actually took java classes recently so now it makes sense, but I appreciate the clear answer 8)

    • @T355V
      @T355V 2 года назад +1

      @@kitcat2449 yeah no problem! glad you're taking classes haha~

    • @PurpleSaturn726
      @PurpleSaturn726 2 года назад

      I’m currently on my final exam for Java as we speak! I’m deciding to do a choose your own adventure game, but it’s a bit hard for me to make the user go from a separate choice to a preexisting choice. Definitely easier said than done though, eheheh…

  • @thedevguild7525
    @thedevguild7525 2 года назад +2

    Wow can't believe you are actually going through the real solutions! Nice!

  • @reisecat782
    @reisecat782 Год назад +2

    Man, by this video you helped me to pass my own code interview, really

  • @liechy
    @liechy 2 года назад +1349

    I swear I thought I was watching myself here, I was literally asked this same question a few weeks ago during my last interview. My approach was pretty similar and I ended up throwing a hashmap at the problem as well. I was able to move on to the next round of interviews because of it, and then later on I eventually got the job.

    • @nicholast
      @nicholast  2 года назад +184

      wow congrats!! so funny how the stories are so similar 😂

    • @jordan.j4064
      @jordan.j4064 2 года назад +19

      Dude how did you make it through lol, im having a hard time passing the 1st tech interview, did you study some data structures beforehand?

    • @liechy
      @liechy 2 года назад +61

      ​@@jordan.j4064 Pretty much yeah. Before I got my first job I had a hard time with tech interviews too. I kept failing and failing them but with each failure I learned more about the areas I was weak in and focused in on that. Soon enough I was able to get more comfortable with interviews and I ended up managing to land my first job with a lot of effort. Honestly though, just keep sending out applications, keep pushing yourself to improve and learn from your mistakes, and soon enough you'll be able to make it through.

    • @bigchungus6546
      @bigchungus6546 2 года назад +1

      @@liechy does gpa matter?

    • @liechy
      @liechy 2 года назад +41

      ​@@bigchungus6546 honestly it doesn't really matter. What really does matter though is actual experience. If you're still in school, shoot for an internship. If you've already graduated, start building out side projects and work on your interview skills.

  • @aaronsalenga3221
    @aaronsalenga3221 2 года назад +2065

    I’m literally watching this right before a coding interview.
    May the power of the hash map be with me.

    • @guilhermepoleto4989
      @guilhermepoleto4989 2 года назад +17

      So, you did it?

    • @bapemanyo
      @bapemanyo 2 года назад +8

      u did it?

    • @alinaertsd
      @alinaertsd 2 года назад +47

      as a cs student, i need to know of you got the job

    • @kchannel5317
      @kchannel5317 2 года назад +100

      Ssssshhhhh guys, he's on his 69th interview. He doesn't know if he'll make it yet.

    • @hhao7310
      @hhao7310 2 года назад +21

      I’m having an tech interview in two days also, wish me good luck

  • @amandapanell2857
    @amandapanell2857 Год назад +2

    Just came back here for your explanation of how the two pointer approach works for Two Sum, thanks :D

  • @ashlar64
    @ashlar64 Год назад +3

    Love the video...i just got a new software developer position. It just took 1 HR phone screen. Two code tests on a coding test websites. Three brutal technical interviews where I created 2 mobile apps and I finally got the position after a total of three weeks. I have a friend who is a nuclear physicist and it took a single 30 minute phone interview to get a position at a nuclear power plant. I do not know any other career field where the interviews are as tough as in software developing.

  • @RudyPhile
    @RudyPhile 2 года назад +1877

    Fun Fact:- " _This guy just cracked the formula of making humour out of no humour_ " 😂😂

    • @nicholast
      @nicholast  2 года назад +58

      😎 😎

    • @afreentaj3648
      @afreentaj3648 2 года назад +48

      You mean _cracked the code_ ?

    • @NeostormXLMAX
      @NeostormXLMAX 2 года назад +9

      This is what you call kafkaesque, when the industry is so absurd that, that in itself is absurd

    • @user-ri2ms2mm7w
      @user-ri2ms2mm7w 2 года назад

      My friends, search for your life purpose, why are we here?? I advise you to watch this series 👇 as a beginning to know the purpose of your existence in this life--
      ruclips.net/p/PLPqH38Ki1fy3EB-8xmShVqpbQw99Do2B-

    • @AmberyTear
      @AmberyTear 2 года назад

      Russian comedians: am I a joke to you?

  • @kungfungify
    @kungfungify 2 года назад +749

    Me pretending I know what he's talking about: "Ahh yes...The ol' indexing the corresponding indices for the core value of zero sum. Brilliant."

    • @nicholast
      @nicholast  2 года назад +181

      Smile and wave boys, smile and wave

  • @redicecreamcone7546
    @redicecreamcone7546 2 года назад

    I watched this video about a year ago. Coming back and watching it now on a whim I realized I understand what they're talking about now. Feels good :)

  • @rlar4652
    @rlar4652 2 года назад +2

    Wow, your video is awesome.
    Not boring like other tech videos.

  • @nicholast
    @nicholast  2 года назад +70

    why is youtube recommending this to so many people 4 months after i posted it??

    • @prasad1608
      @prasad1608 2 года назад +3

      Lol ...I once saw a 11 years old video in my recommendation

    • @kelton8852
      @kelton8852 2 года назад +1

      graduates bro

    • @mr6462
      @mr6462 2 года назад

      I just graduated and started my leetcode grind, and my RUclips feed become all cs videos and I got this video recommendation

  • @bharat_thapa_
    @bharat_thapa_ 2 года назад +2810

    in school: 2+2 = 4
    in exam: What is the mass of Sun?
    in coding interview: solve complex problems.
    in job: data entry 😅🤣😬😬😒😒
    Edit: WOW so many likes!
    Thank you guys 😍🤩

  • @kiranbailey-stokes1044
    @kiranbailey-stokes1044 Год назад

    When I saw the question I paused it and came up with using a map, love that you came up with the same solution

  • @MazorKuziaki
    @MazorKuziaki 2 года назад +1

    Just watching this video at the beginning of learning my first language. Going to watch again in 6 months to see how much more I understand.

  • @pranjali1411
    @pranjali1411 2 года назад +307

    When you said "There's more??!!!! "
    I felt that 😢

    • @nicholast
      @nicholast  2 года назад +19

      there's always more :(

    • @MegaOfficeHours
      @MegaOfficeHours 2 года назад +27

      @@nicholast Wave 4 of interviewing... Interviewer: "Wow, looks like its been 6 weeks since our first meeting. Unfortunately, at this point in time we will be moving forward with other candidates."

    • @GrinFlash007
      @GrinFlash007 2 года назад

      @@MegaOfficeHours I'd rather be a fish if I'm gonna get gutted like that 😂

    • @MegaOfficeHours
      @MegaOfficeHours 2 года назад

      @@GrinFlash007 I got a CompSci degree and quit looking for jobs after a few of these.

    • @MegaOfficeHours
      @MegaOfficeHours 2 года назад

      @@Egg-vv8de which part lol. Wave 4 of interviewing or giving up on finding a software job?

  • @jonathanmilien9075
    @jonathanmilien9075 2 года назад +401

    This hit me on a cellular level. LOL

    • @nicholast
      @nicholast  2 года назад +14

      LOOL

    • @exodia_right_leg
      @exodia_right_leg 2 года назад +5

      This is what I've been saying. This guy doesn't miss bro

  • @krishchauhan4675
    @krishchauhan4675 Год назад

    A year ago I watched your video. Didn’t understand a word you said. Now when I watch this video I understand and have done exactly what he did!🎉🎉

  • @pyserialkiller110
    @pyserialkiller110 2 года назад +1

    I love the linear time solution. Is the perfect example of a simple, clean and clever idea

  • @tyranitarxd2819
    @tyranitarxd2819 2 года назад +450

    it was harder to come up with that 2nd solution than the hashmap solution

    • @michaelaramis1210
      @michaelaramis1210 2 года назад +43

      the other day i did a technicall interview, i felt ashamed to use a hashmap for both question, i thought i was being dirty

    • @superdingo9741
      @superdingo9741 2 года назад +15

      ​@@michaelaramis1210 the other day I interviewed a guy and he didn't even know how a regular array works and how writing to a variable happens under the hood. And he had a year of expirience as a software ingeneer. So if you know what the hash map is and able to apply it in suitable places, you are a better than many out there and have nothing to be ashamed of.

    • @michaelaramis1210
      @michaelaramis1210 2 года назад

      @American Hero yeah, heavily!

    • @michaelaramis1210
      @michaelaramis1210 2 года назад

      ​@@superdingo9741 i was refering that i felt dirty on using my hammer to nail every problem :P but i do get your point, it has taken many years for me to validate myself as a developer and still theres plenty of room to grow
      ive done cloud apps, mobile, desktop, architected backend and frontend software, lead small teams of developers...
      still to this day i dont feel that i could fit on a large company

    • @prateeksingh-hp4qd
      @prateeksingh-hp4qd 2 года назад

      @@superdingo9741 Wow that's reassuring 🤧

  • @tannerbarcelos6880
    @tannerbarcelos6880 3 года назад +452

    Hashmaps really do save you though lmao

    • @nicholast
      @nicholast  3 года назад +35

      Facts

    • @prabeshhumagain1008
      @prabeshhumagain1008 3 года назад +25

      Yeah, basically a time-memory trade-off.

    • @placeholder_name321
      @placeholder_name321 2 года назад

      @@prabeshhumagain1008 is a hashmap like a Regular Expression

    • @ohtexankorean5567
      @ohtexankorean5567 2 года назад

      @@placeholder_name321 no, hashmaps store keys and value pairs. Keys can be mostly anything, but in the interview he stored the complement integer as a key and the index as a value. You can look up keys in constant time. Regular expressions is used to find things in a certain format you specify. Regular expression do not store anything you found

  • @ngametuatuaputa1404
    @ngametuatuaputa1404 2 года назад

    I had no idea what you were talking about the whole time, but now I wanna learn

  • @revertrohan
    @revertrohan 2 года назад

    I got this question in my interview today and your video suggestion earlier. Should have watched then.

  • @nicholast
    @nicholast  2 года назад +200

    5k likes for part 2 👀

    • @CyberMew
      @CyberMew 2 года назад +1

      Throw hashmap at the problem sometimes really work lol. Can't wait for next tip!

    • @SirMinelli
      @SirMinelli 2 года назад

      I'm beginning my coding journey and watching this scared the crap out of me.

    • @critio8824
      @critio8824 2 года назад

      Done

    • @dtr579
      @dtr579 2 года назад

      I absolutely didn't understand anything all of you were saying, so I guess I'll never get hired as a coder.

  • @wonderstruck.
    @wonderstruck. 2 года назад +651

    "Just throw a hashmap at the problem"
    My algos professor: "Nope find an O(1) solution"

    • @mystic839
      @mystic839 2 года назад +38

      this was actually a solution that was desired from me once: the best answer was to generate a lookup table beforehand, and just use that in the live code.

    • @DeezNuts-zx3ih
      @DeezNuts-zx3ih 2 года назад +52

      “Fuckin uh… just take the first two and hope that its right”

    • @obamabinladen5055
      @obamabinladen5055 2 года назад +10

      use a hashmap, lol key = input, value = pre-programmed desired output.

  • @yulu1248
    @yulu1248 Год назад +10

    3:09 that repetitive sentence is sooo realistic

  • @cirogarcia8958
    @cirogarcia8958 2 года назад +9

    "Throw a hashmap at the problem" is my standard first approach to any problem involving arrays. Now I know I'm not just weird

  • @user-pt1ye7vd7m
    @user-pt1ye7vd7m 2 года назад +473

    Me after learning the basics and OOP for Python: I guess I'm ready for at least an internship.
    Me after watching this video: What???????????

    • @electrenator5601
      @electrenator5601 2 года назад +38

      It's another language. Java from what I can see.
      Also, other languages are nothing to be afraid of. If you know the base concepts of Python, other languages like Java probably won't take long to get used to. :)

    • @mcstats5199
      @mcstats5199 2 года назад +25

      learn data structure and algorithm, dynamic programming

    • @jabjohn3784
      @jabjohn3784 2 года назад +4

      @@electrenator5601 that’s completely wrong, like everything you said 1. Java is a lot more complicated than python and 2. Learning another programming language is like learning another language you should always start with the one you want to end up using

    • @perhapsso1909
      @perhapsso1909 2 года назад +31

      @@jabjohn3784 No? Learning another language once you are profecient in one is like a 2 week struggle. If you cant get used to a new language within the same paradigm within a month at most then you clearly do not understand your current language.

    • @jabjohn3784
      @jabjohn3784 2 года назад +3

      @@perhapsso1909 Ok I’ll agree on that basis but Java is a lot more complicated than python

  • @tylerfunnyman2532
    @tylerfunnyman2532 2 года назад +493

    I’ve been debating about going into coding for a couple months now. Thank you for this u-turn 😂

    • @nicholast
      @nicholast  2 года назад +122

      nah u should try it

    • @Tezzilove
      @Tezzilove 2 года назад +4

      😂😂😂

    • @PoeticComments
      @PoeticComments 2 года назад +17

      No the u turn 😭😂

    • @lalala-lt8fe
      @lalala-lt8fe 2 года назад +37

      I've been working as a programmer for nearly 10 years and I've never had an interview like this. It's an extremely broad field, it isn't all like this.

    • @Joe-fj6dj
      @Joe-fj6dj 2 года назад +5

      @@lalala-lt8fe let me guess you doing front end?

  • @Trillykins
    @Trillykins 2 года назад +10

    Lol, when he mentioned to throw a hashmap at it I immediately thought back to one interview question I got where I bongled it because I didn't think to use a hashmap to get linear runtime until after the interview was over and it was this exact problem. I hate code interviews for the same reason I hate oral exams. If you don't immediately know the solution you're just fucked and if you're the type of person who gets nervous at oral exams you're just at a huge disadvantage compared to someone who doesn't get nervous. I mean, it's not like you'll ever be in a situation at your job where you have five and only five minutes to conjure up and code up a solution to an algorithm. Anyway. Fun and relatable video.

  • @hawkeyebricks9905
    @hawkeyebricks9905 Год назад +3

    I'm glad I've been working at the same company since I graduated 22 years ago because I would not be able to code up something with someone watching over my shoulder in an interview setting. But I do agree... whenever you're stuck the solution probably involves a HashMap.

  • @MrBenny1010101
    @MrBenny1010101 2 года назад +83

    I love how the guy just awkwardly walks away without further explanation, even though the person he was explaining to was clearly still confused. And he literally is walking to nowhere.

  • @kibe2134
    @kibe2134 2 года назад +75

    I came for a quick joke and ended up learning about hashmasps and having a Big Time Rush nostalgia trip. Sub.

  • @cenkercanbulut3069
    @cenkercanbulut3069 2 года назад

    Good. One more video to show for my students about why Data Structures are maybe the most important topic of efficient Software development

  • @satou9508
    @satou9508 Год назад

    Just saw this now and this is making me motivated lol

  • @neil2300
    @neil2300 2 года назад +47

    Interviewer - MAKE A TIME MACHINE
    ME- What ?
    Interviewer - Too late, *Rejected*

  • @lindh2126
    @lindh2126 2 года назад +172

    And from all us coders out there, here is the real answer: "No problem sir, let me just google that for you!"

  • @turtlecode
    @turtlecode Год назад

    thanks for advices 🙏

  • @fernandov.3302
    @fernandov.3302 Год назад

    I felt dumb af because my brain started kind of blurring some of the stuff you were saying, but hearing pairs and my first thought being HashMap and it coming up actually made my day. We take these wins, no matter how small....

    • @syntaxicalecho8281
      @syntaxicalecho8281 Год назад

      Lol, at least you did better than me, up until I saw this video I only knew Hashmaps as Dictionaries

  • @chrisaxis5043
    @chrisaxis5043 2 года назад +281

    To someone who just finished making the snake game, it's too much

    • @hectorg362
      @hectorg362 2 года назад +11

      Don’t give up.

    • @onedumbsloth5029
      @onedumbsloth5029 2 года назад +23

      Brooooo i just got done with html training😂

    • @webserververse5749
      @webserververse5749 2 года назад +13

      @@onedumbsloth5029 I am not sure I can consider HTML as "programing". . . By definition it is but IDK. HTML seems to be fundamentally different than say Java, C# or something else. Would say it is like "Anyone can build a house, but not everyone can code a program to build the house".

    • @do.xuantung
      @do.xuantung 2 года назад +7

      @Nicolás Agustín you and the guy above must be fun at parties

    • @paulvorderegger1522
      @paulvorderegger1522 2 года назад +1

      @@do.xuantung No at this point it's almost a meme... It's like in the real world... "I built houses with a big crane", "I build houses with two small cranes and a crew to lay the bricks" and "I build houses out of lego"

  • @grantdong7746
    @grantdong7746 2 года назад +246

    I was expecting a joke of a video, but this was actually extremely helpful as a CS major.

  • @Crunchy_Nachos
    @Crunchy_Nachos 2 года назад +17

    Wow this is so accurate, ive had like 3 interviews for the same company before finally getting the job.
    The best tip I could give is to not be sad if you dont ace your interview. Always try to learn from failiures and never say you know something that you cannot explain.
    :)
    Good luck

  • @tongtongqi1632
    @tongtongqi1632 2 года назад +3

    Just fyi, there is actually a trade-off between the 2 solutions; neither is more optimal than the other. The second solution, even though faster, takes extra space. A better script can be asking the clarification question first ("Is the array sorted?") and then propose both solutions depending on different conditions.

  • @mdouet
    @mdouet 2 года назад +53

    That part where he didn't know what to do next and just kept saying "uh" over and over really hit home, lol.

  • @JasonWangooo
    @JasonWangooo 3 года назад +256

    No idea what anything you said meant but I was very invested into the video. 10/10 acting, would recommend

    • @nicholast
      @nicholast  3 года назад +13

      Lmaooo thank you Jason :)

  • @Lilithet
    @Lilithet 2 года назад +6

    As an interviewer, I have never asked a question like this, I am happy when they show basic problem solving capabilities and are able to google. Of coarse I don't work for Google or Microsoft either.

  • @skyborne6393
    @skyborne6393 Год назад

    Lol. I really like these videos. This is exactly like the engineering interviews. Especially the oh I just did this problem last night but I will pretend this is my first time seeing it.

  • @Demodude123
    @Demodude123 2 года назад +814

    I wouldn't give him a second interview because I said you can assume there will always be a solution but you wrote an Exception and told me what would happen in the event that there was no solution. You can't follow directions, not FAANG worthy XD

    • @nicholast
      @nicholast  2 года назад +122

      you can never be too safe 👀

    • @michallasan3695
      @michallasan3695 2 года назад +32

      If some manager says it will not happen, it does not mean that it will not happen.

    • @nicholast
      @nicholast  2 года назад +16

      @@michallasan3695 it's like in my "software engineering interns be like" video (don't wanna spoil it, but you should check it out if you haven't already :))

    • @taaihone6881
      @taaihone6881 2 года назад +10

      What would you have done instead? There has to be a return or a throw, otherwise his code won't compile smartass.

    • @superdingo9741
      @superdingo9741 2 года назад +2

      @@taaihone6881 I'd put there different message, like: "shouldn't get here" and clarified to the interviewer this was added with the only intention to make the code compile.

  • @nicotinedealer7653
    @nicotinedealer7653 2 года назад +153

    I had the "throw a hashmap at the problem" awakening only yesterday. Code works in mysterious ways.

  • @azurite1282
    @azurite1282 Год назад

    2 years ago when this video first came out, I had no clue what he was talking about nor the problem at hand. Now I can't believe I can now actually understand everything that's being talked about in this video!

  • @mokhlesurrahmanmahin4561
    @mokhlesurrahmanmahin4561 Год назад +1

    That very famous two sum problem from leetcode. haha. I would have directly jump into the Hash Map for sure. Thanks bro for teaching me this ninja technique. :D

  • @ChiEKKUsama
    @ChiEKKUsama 2 года назад +39

    "Could you make it faster?"
    "I'm sure we could, let's discuss it during tomorrow's stand-up; I'm sure the team will have some input. After all, this won't go into production for 3 months, so we have lots of time to refine it."

    • @nicholast
      @nicholast  2 года назад +8

      “That would be a cross-functional effort requiring 10 engineers and 4 weeks. Let’s keep it in the backlog for now”

  • @elonlothbrok5991
    @elonlothbrok5991 2 года назад +92

    Yeah and after the second interview they just ghost you out and you never really get to know why. Been there so many times

    • @nicholast
      @nicholast  2 года назад +28

      f in the chat

    • @RebornAc3
      @RebornAc3 2 года назад

      @Elon Lothbrok, this one hits hard lmao

    • @kooxaldoxt5162
      @kooxaldoxt5162 2 года назад

      Really? F**k. Even after learning so many years of coding we might fail at this point 😑.

    • @firestarter000001
      @firestarter000001 2 года назад +17

      I think i hate this most , I had a few interview when im pretty sure i answered like at least 90% right and they still didnt hire me and got back with no or a weird feedback. IF the feedback would be reasonable , like what you did wrong, what did you lack, it would be so much more constructive and understandable. I remember one company after the interview as feedback told me "my talents lay in other direction" Wtf lol. Should i start ice skating or something, even tough i was professionaly programming for 5 years already at the time. Screw them.

    • @traugdor
      @traugdor 2 года назад +2

      I got ghosted because they had intended to give the job to someone else within the company and didn't tell the recruiters.

  • @domenicksborea7630
    @domenicksborea7630 2 года назад +1

    Just started learning but happy I understood most of this context tbh

    • @nicholast
      @nicholast  2 года назад

      Nice keep it up 💪

  • @NiNGalaxU2
    @NiNGalaxU2 2 года назад

    Loved the Big Time Rush Outro at the end 👌🏼

  • @tc2241
    @tc2241 2 года назад +233

    Jokes on you, next interview is a gauntlet with at least 4 other engineers. Prepare to have your entire evening consumed only for some rando in QA to not like the way you wrote a given in one of your unit tests and eliminate your application

    • @AonyjsViolmlar05
      @AonyjsViolmlar05 2 года назад +11

      I usually don't bother about it. I just keep looking and hope for a more practical engineers that ask real world scenarios on how im able to handle it and give a solution.

    • @nicholast
      @nicholast  2 года назад +3

      😳😳

    • @blackboxbs8642
      @blackboxbs8642 2 года назад

      Unit tests?

    • @Subuzgreatest
      @Subuzgreatest 2 года назад +1

      @@donventura2116 Oh yeah.

    • @HappyHermitt
      @HappyHermitt 2 года назад

      Well that's encouraging 😂

  • @youreadisgracepod
    @youreadisgracepod 2 года назад +146

    That “hmm good question. Uh, I, uh, well instead of doing what we did…” was one of the most relatable things I’ve ever heard. I don’t do coding anymore since I’m ass at it and straight up don’t like it and this video was so accurate

  • @oathpeterson
    @oathpeterson 2 года назад

    😁 I have no idea about coding but enjoy your video, also share this to a friend
    who is learning to code and going to interview for boot camp or something, not sure

  • @josephflanagan8957
    @josephflanagan8957 2 года назад

    This video actually helped me in an assessment i got stuck and threw a hashmap at the problem and it worked

  • @WhatIsThis-zq4hk
    @WhatIsThis-zq4hk 2 года назад +116

    _*5 minutes later *_
    After careful consideration of your impressive resume and interview performance, we have decided to make the difficult and gut wrenching decision to move forward with other candidates whose skills more closely align with the needs of this position at this time. We greatly appreciate your time and we hope that you continue to follow our posted job opportunities in the future.

    • @chichichichichichiOwO
      @chichichichichichiOwO 2 года назад +3

      Someone's been rejected a few times before

    • @eulr7915
      @eulr7915 2 года назад

      like this

    • @von...
      @von... 2 года назад +3

      tbh I would rather them fully vibe check me & read every single 'less than ideal' comment from the interviewer.
      like "Honestly, this guy uses the term 'ostensibly' & 'thus' far too frequently. I will quit if you hire him on my team" & being somewhat petty, is something I would prefer to corporate nice-speak.
      Oh btw for anyone who reads this & thinks "same": I have had good luck in getting real feedback by reaching out to interviewers via linkedin or github (note: not their @work emails), but I am careful to not be weird about it lol

  • @princeelliot2836
    @princeelliot2836 2 года назад +50

    I'm currently studying for my exam in algorithms (mostly time complexity). Thank you for giving me shortcuts with this video.

  • @BadBanana
    @BadBanana Год назад

    That's pretty advanced knowledge from where I'm sitting
    Nice video

  • @martinlacsamana7534
    @martinlacsamana7534 Год назад

    Rewatching this a year later and actually understanding what’s happening makes it even funnier