Lightning Talk: How to Win at Coding Interviews - David Stone - CppCon 2022

Sdílet
Vložit
  • čas přidán 3. 04. 2023
  • cppcon.org/
    ---
    Lightning Talk: How to Win at Coding Interviews - David Stone - CppCon 2022
    github.com/CppCon/CppCon2022
    5 minutes of preparation is plenty to beat any coding interview.
    ---
    David Stone
    David Stone has worked on autonomous vehicles, large-scale distributed systems, and now works developing software for high-frequency trading. He is a member of the C++ Standardization Committee, where he chairs the Modules Study Group (SG2) and is the vice chair of the Evolution Working Group (EWG).
    ---
    Videos Filmed & Edited by Bash Films: www.BashFilms.com
    CZcams Channel Managed by Digital Medium Ltd events.digital-medium.co.uk
    #cppcon #programming #coding
  • Věda a technologie

Komentáře • 35

  • @EgD996
    @EgD996 Před rokem +51

    I really like this guy! Am I watching a stand-up comedy?

  • @kodirovsshik
    @kodirovsshik Před rokem +75

    What a great talk, I wish there were more like this one!

    • @David-fn1rd
      @David-fn1rd Před rokem +4

      Thanks!

    • @khatdubell
      @khatdubell Před rokem +1

      @@David-fn1rd Everyone knows interviews are testing for the wrong things.
      The real question is, what's the solution?

    • @David-fn1rd
      @David-fn1rd Před rokem +5

      @@khatdubell Great question. I'm considering that for a full-length talk this year -- how we should be interviewing.

    • @JohnDlugosz
      @JohnDlugosz Před rokem +2

      You can find a guy who promotes std::rotate as the solution to everything.

    • @ChrisCox-wv7oo
      @ChrisCox-wv7oo Před 8 měsíci

      @@JohnDlugosz Sean Parent : czcams.com/video/sWgDk-o-6ZE/video.html

  • @yuurishibuya4797
    @yuurishibuya4797 Před rokem +9

    Awesome, I love lighting talks, they pack the punch!

  • @Sychonut
    @Sychonut Před rokem +5

    Interviews at big tech is like a strange mating ritual.

  • @HaoZhang88
    @HaoZhang88 Před rokem +6

    It is pretty fun watching this talk!

  • @gustavob.7957
    @gustavob.7957 Před rokem +6

    that is actually great. simple but really valuable

  • @Bbdu75yg
    @Bbdu75yg Před rokem +9

    Give us more talks like that !

  • @zhongchu3325
    @zhongchu3325 Před 6 měsíci +7

    But leetcode 229, majority element II requires constant space. In this case, you are not allowed to use hash map. If hash map is allowed, this is simply an easy level problem. In a real code interview, the interviewer will definitely ask you to think of a solution using constant space. It won't be that easy....

    • @HelloSpyMyLie
      @HelloSpyMyLie Před 5 měsíci

      Bruh he said use the Booyer Moore voting algorithm

  • @user-ig8ut3zi4z
    @user-ig8ut3zi4z Před rokem +21

    LeetCode style interview questions don't measure how good the interviewee is in C++ or software engineering. It only measures how good they are at solving LeetCode style problems.
    If all you do in your company is solving LeetCode problems, then hire via this broken method. You will be fine.

    • @JohnDlugosz
      @JohnDlugosz Před rokem +1

      It's only one of the skills needed. When implementing something, a "step" will boil down to something like that : find something, organize something, count something, etc. Business logic usually falls into this category.
      Now we test two skills: can you do that efficiently, and can you actually write code that works (write fluently)?
      But that's not Software Engineering.
      I'd say the best guide to testing is to test candidates on the stuff you do all day, every day. Well, strip out "Sit through meetings".

    • @etherstrip
      @etherstrip Před rokem

      @@JohnDlugosz Actually, no need to strip it out. After all, an interview is a meeting too.

    • @gizigus055
      @gizigus055 Před 10 měsíci +2

      It's worse than that. Most of these big companies cannot force candidate to do the interview in a specific language. It's part of the recruitment process. So technically you can get a C++ job by doing a Leetcode interview in Python. It makes absolute no sense but this is the way it has become. It all boils down to how good you are at Leetcode.

  • @joachimjoyaux179
    @joachimjoyaux179 Před rokem

    Excellent !

  • @deeplearningpartnership
    @deeplearningpartnership Před rokem +1

    Cool advice.

  • @gokulram4950
    @gokulram4950 Před rokem +1

    Awesome...

  • @Shakephobiaful
    @Shakephobiaful Před rokem +8

    The last sentence is the most important one. Great talk 👍

  • @qazarl
    @qazarl Před rokem +1

    Haha brilliant!

  • @ohwow2074
    @ohwow2074 Před rokem +7

    People sometimes forget that unordered containers are faster when it comes to searching. Great talk nonetheless.

    • @vladimirkraus1438
      @vladimirkraus1438 Před rokem +11

      In reality they are usually not. Their only benefit is that they scale well for large amounts of data. But for smaller amounts they are usually much slower than a linear search in a plain stupid vector. It is always good too discuss this with the interviewer. What is the expected amount of data? Are we optimizning for speed or do we want a scalable solution? The fact that you know pros and cons of various containers is what will will impress the interveiwer probably more that he solution itself.

  • @ruadeil_zabelin
    @ruadeil_zabelin Před rokem +4

    Most technical interviews are testing the wrong thing. You know you're going to get the wrong people when you give them homework. Why? Because only people that really need the job badly will try their hardest at them. People that know they're good enough will just try somewhere else and not bother.

    • @vladimirkraus1438
      @vladimirkraus1438 Před rokem +15

      Sometimes you prefer people who are actually interested in the job than superstars with inflated ego.

  • @gursewaksingh2146
    @gursewaksingh2146 Před 5 měsíci +1

    Like for 3rd question, most of the interviewers wants candidate to write their own algorithm.

  • @habibahmedawan
    @habibahmedawan Před rokem +1

    oh boy😀

  • @vladimirkraus1438
    @vladimirkraus1438 Před rokem +3

    You should also show that you think ahead and are able to generalize. When given the first task finding the numbers which occur more than 1/3 of time, you should ideally create a solution in which 3 would be a runtime argument passed to the function. Unless it is a severe performance hit, in which case you should discuss this with the interviewer and only in that case decide to pass the value as compile time param. Also in the second task, you should ideally generalize the number of arrays and the required frequency as runtime args. If you just hardcode the number of arrays, your solution is not flexible in anticipation of future changes of requirements.
    In short: seniors and experts should always think in general and abstract terms and anticipate future changes because they have seen so many. And always discuss the task presumptions before you start working on a solution. Show that you consider multiple solutions and you are able to tell the pros and cons.

  • @tetsuoshiva
    @tetsuoshiva Před rokem +3

    Or : "How to interview when they liked your CV and it's just a formality".

  • @shrekistlieben
    @shrekistlieben Před 4 měsíci +1

    No no no ... Hash map is like for idiots . .. Lee Vodkatrubac can use a Travelling Fenwick Heap to solve it in O(1) and 3 lines of code

  • @zz-oq2dt
    @zz-oq2dt Před rokem +1

    Are u kidding me?

  • @sunnyshivam4782
    @sunnyshivam4782 Před rokem

    Great Idea