2nd Place in Google Kickstart 2020 G with keyboard-cam and commentary

Поділитися
Вставка
  • Опубліковано 13 чер 2024
  • Screencast of Google Kickstart 2020 Round G with commentary on problems and contest strategy. Solving the hardest problem in 5 minutes sometimes isn't enough to win.
    Contest link: codingcompetitions.withgoogle...
    I'm streaming regularly on Twitch now! Coding interview problems on Thursday, and Competitive Programming on Tuesday & Saturday. / errichto
    0:00 - A (statement)
    0:33 - strategy
    1:16 - A (solution)
    3:11 - B
    4:49 - submit
    5:12 - C
    10:35 - C (solution)
    15:36 - debugging
    16:12 - C (solution)
    18:17 - cheering for past Kamil
    20:50 - submit
    21:22 - D
    26:00 - results
    28:11 - William Lin
    - second YT channel for screencasts and old live-streams: / errichto2
    - FB and Twitter: / errichto & / errichto
    - Frequently Asked Questions: github.com/Errichto/youtube/w...

КОМЕНТАРІ • 325

  • @soruzein2988
    @soruzein2988 3 роки тому +101

    This is so interesting that 2 guy who finish at the first place and second place in Google Kickstart is recording him self for UA-cam. Both of you and William Lin is an insane guyy

  • @29saiharsha
    @29saiharsha 3 роки тому +379

    i love this style of video and ur video quality has gone up so much i appreciate the content!

    • @Errichto
      @Errichto  3 роки тому +38

      Thank you :)

    • @sahilsharma2952
      @sahilsharma2952 3 роки тому +1

      Yes... Really helpful .

    • @mosesmuchemi7221
      @mosesmuchemi7221 3 роки тому

      this was supposed to be an easy problem.. umm .. okay

    • @raynei
      @raynei 3 роки тому +1

      @@mosesmuchemi7221 lol what
      did you expect anything easy when it had "google" in it's name

    • @chiranjeevishankarn7904
      @chiranjeevishankarn7904 Рік тому +1

      @@mosesmuchemi7221 Dude! hahaha :D ... Loved ya sarcasm ... but
      Errichto is so cool as a coder, don't you think so?

  • @achintyaeeshan3069
    @achintyaeeshan3069 3 роки тому +17

    Congrats Errichto, this format is just amazing!

  • @AdityaSharma-fp3de
    @AdityaSharma-fp3de 3 роки тому +32

    It's hilarious when he says "Kamil from the competition" like he's talking about his alter ego.

  • @vishnusingh4118
    @vishnusingh4118 3 роки тому +2

    WOW! Amazing Editing! I can't even imagine the amount of effort it must have taken you! But you aced it! This is so helpful and extremely well done video. Thank you for all your efforts Errichto! More power to you and your channel man!

  • @SantoshKumar-nc7uw
    @SantoshKumar-nc7uw 3 роки тому

    Congrats Errichto for 2nd position... whenever I participate in any contest , first come to your videos to look to your solutions and your approach...you have been a motivation for me since beginning of my cp journey...keep uploading these kind of videos...thanks

  • @cydrus2856
    @cydrus2856 3 роки тому +1

    I love the new contents! It was the first time I seen keyboard-cam in a competitive programming video :D

  • @so7am96
    @so7am96 3 роки тому

    lovely format, errichto! very concise not wasting time and even explaining while past you approaches the problems, very organised and the ending was the cherry on top xDD
    Keep it up!

  • @rogerm4a1
    @rogerm4a1 3 роки тому +1

    As someone who is still very new to programming I get so overwhelmed watching you perform these challenges that you make look so easy! Motivating to be quite honest.

  • @cwagnello
    @cwagnello 3 роки тому

    Explaining your thought process is the best. Very few coding question UA-camr's actually spend the time explaining how to arrive at the solution and not just handwaving and then writing code.

  • @PiyushKumarPorwal
    @PiyushKumarPorwal 3 роки тому +14

    Errichto is on fire 🔥 He's best Competitive Programmer with Best explanation.. way better than many paid websites 🤭😁
    May you exist forever to this world! ♥️

  • @nitinpandey7478
    @nitinpandey7478 3 роки тому

    This format of video is pretty good, Thanks @Errichto.

  • @crayolaksh
    @crayolaksh 3 роки тому +1

    Love this style of screencast+commentary!

  • @gaurav7656
    @gaurav7656 3 роки тому +1

    Errichto is a better guide than any other.
    Good to walk with you through the solution thank you.

  • @thelittleguysfight1741
    @thelittleguysfight1741 3 роки тому

    Congrats man! I'm still starting for your algo lectures, but am excited for your win

  • @akshitmangotra5370
    @akshitmangotra5370 3 роки тому

    loved this style of eleborating the things and congrats for the second position

  • @aryanbhatia6992
    @aryanbhatia6992 3 роки тому +1

    This video was so good and your explanations were very clear , please do more videos like this

  • @yousefibrahim8862
    @yousefibrahim8862 3 роки тому +174

    I don't understand anything I am just intrigued.

  • @pranshukashyap6848
    @pranshukashyap6848 3 роки тому

    Congratulations Errichto for 2nd Place!! and Thanks for the Editorials..

  • @systemflaws
    @systemflaws 3 роки тому +44

    This was my first contest. I got the 2813 rank. I was waiting for the solution. I applied the brute force approach and then optimize it. Thanks!

  • @sharathnair1702
    @sharathnair1702 3 роки тому

    Your solution to last problem is soo amazing!

  • @matheusdallrosa4698
    @matheusdallrosa4698 3 роки тому +145

    Me during contest: Thinking 2h 25min about C and getting 3 WA.
    Errichto: Didn't think more than 5 seconds.

    • @amandarash135
      @amandarash135 3 роки тому +7

      It's mean you solved A and B in 35 min.

    • @Errichto
      @Errichto  3 роки тому +136

      tbh, I spent a lot of time implementing. It was just obvious to me at the very beginning how I can approach this problem because I saw similar problems before. So maybe you're better than me by solving it from scratch.

    • @amandarash135
      @amandarash135 3 роки тому +3

      @@Errichto yes you are right it's just only about solving more problems , then you would became like him ;)

    • @matheusdallrosa4698
      @matheusdallrosa4698 3 роки тому +4

      @@Errichto During the contest i tried to ternary search a point P that would minimize the cost, but because of the wrap around (only because of it i think) it didn't work. I think that the key point was to notice that the best point is already present on the input, after having that information i was able to make a O(N log N) solution.

    • @karmellammy4773
      @karmellammy4773 3 роки тому +12

      @Cartsanov thats never gonna happen for you bud. Trust me

  • @alimsayleb9510
    @alimsayleb9510 3 роки тому +6

    Errichto is my favorite competitive programmer, even if he got 2nd place, at least he doesn't say "Oh i'm depressed because i've only won 3 out 7 kick starts this year :(". Great spirit from Errichto, beautiful content and great explanation. Thank you for your videos and congratulations for acing the google kick start round G

    • @tapaskumarbilash8239
      @tapaskumarbilash8239 3 роки тому +1

      Ohh are you referring to some William lim.. he's a genius.

    • @BarkaDog
      @BarkaDog 3 роки тому

      Yeah that's just a too Asian thing to say.

  • @Errichto
    @Errichto  3 роки тому +2

    My solution for the last problem can be easily improved from O(N^2) to O(N), and it's still just 20 lines of codes. I described it in Codeforces: codeforces.com/blog/entry/83807#comment-711889

  • @albelayet1510
    @albelayet1510 3 роки тому

    Really You're great Man! I don't understand as Like as you do but Still Watching Your contest. I impressed Your Coding Style Your Speed and Also Your Talent

  • @kartaLaLa
    @kartaLaLa 3 роки тому

    It is great to see you and william compete with each other!!, nice video

  • @tejasaditya551
    @tejasaditya551 3 роки тому

    errichto this format of facing camera towards keyboard and commenetary with problem solving later is very good because earlier there didn't seemed any point of seeing two faces simultaneously..

  • @yaosongding1479
    @yaosongding1479 3 роки тому

    Keyboard cam is so rare on youtube. Love it!

  • @XFaramir
    @XFaramir 3 роки тому

    Nice to know how your mind works to solve those issues. Nice content.

  • @lonaya7255
    @lonaya7255 3 роки тому

    I started cp a few month ago and these video insights are very helpful for my understanding. Big thanks errichto. Great video as always!
    Btw it's a little bit scary how addicting cp is

    • @raynei
      @raynei 3 роки тому

      lol yeah
      the satisfaction after getting a accepted solution is addicting

  • @nigeltan7766
    @nigeltan7766 3 роки тому +1

    Thank you for the educational content! Really helps newbies like me hahaha. I still dont know how exactly to solve problems C and D but i will look at this video a few more time!

  • @abhinavraut3099
    @abhinavraut3099 3 роки тому

    Really love this format!!!

  • @ChandraShekhar-by3cd
    @ChandraShekhar-by3cd 3 роки тому

    Loved the Keyboard Integration with the video + commentry++.. :)

  • @mixItUp454
    @mixItUp454 3 роки тому

    Hats off for your last problem probability solution 🔥🔥.

  • @qruick321
    @qruick321 3 роки тому +1

    Kamilu, jesteś najlepszym hakerem jakiego poznałem w Polsce! Życzę ci samych sukcesów, a twój talent jest na wysokim poziomie!

  • @sameerbamnaha2189
    @sameerbamnaha2189 3 роки тому +1

    Congratulations!!

  • @akhilgunti7540
    @akhilgunti7540 3 роки тому

    Congrats man!!🔥

  • @astridbrenner2957
    @astridbrenner2957 3 роки тому +4

    It's just satisfying, watching at a guy who is coding fast

  • @Programmity
    @Programmity 3 роки тому +1

    Much appreciated work following your videos :)

  • @Satyam_singh18
    @Satyam_singh18 3 роки тому +2

    You both are legend for me

  • @OG_Scratch
    @OG_Scratch 3 роки тому

    I like how you posted all the videos even though you didn't win the contest. Winning is cool but is not about the winning is about the process that everyone wants to see.

  • @bhanusharma658
    @bhanusharma658 3 роки тому

    great video and nice format btw

  • @SohelRana-hi7ec
    @SohelRana-hi7ec 3 роки тому

    Congrats Errictho.

  • @shanmukhavarma3361
    @shanmukhavarma3361 3 роки тому

    Finally I could get some idea on problem c thank you man

  • @coastaldemigod
    @coastaldemigod 3 роки тому +4

    I had solved the 3rd qn earlier in codechef long challenge , but couldn't remember it during this contest 🙂. The editorial was very nice

  • @abdurrahaman388
    @abdurrahaman388 3 роки тому

    This type of videos are much better ❤️

  • @meenameiss
    @meenameiss 3 роки тому

    This is great editing, take my like

  • @vishalbhatane1608
    @vishalbhatane1608 3 роки тому +1

    Thank you very much !

  • @emanuel0723
    @emanuel0723 3 роки тому

    Great video, congrats on the 2nd place!! Question, what's the software used to write/draw in the black screen? and what kind of pencil or stylus works good for it?

  • @pinakipb2
    @pinakipb2 3 роки тому

    loved the keyboard-cam

  • @ChelGaming
    @ChelGaming 3 роки тому +2

    I dont do competitive coding but this video is motivational for my coding habit

  • @endeavored
    @endeavored 3 роки тому

    Even though I don't understand anything just watching this is so fun

  • @acedia8399
    @acedia8399 3 роки тому

    Mad respect from Russia! Happy New Year!

  • @nihalk3935
    @nihalk3935 3 роки тому

    Love the style of video 🔥🔥🔥😍😍😍

  • @jamess3159
    @jamess3159 3 роки тому

    What the.... And just when I thought I was getting good at coding LOL. Great stuff man!!

  • @satishshingade8514
    @satishshingade8514 3 роки тому

    it is very interesting to watch at the same time learn thanku so much

  • @yuanzhang9744
    @yuanzhang9744 3 роки тому +1

    I love the keyboard-cam so I can see why cp programmer can type so quickly XD

  • @ayaz.unstoppable
    @ayaz.unstoppable 3 роки тому

    Bro actually m from india and really like ur style solving and u r really a good competitive programmer i follow u to learn to code

  • @ansrhl9448
    @ansrhl9448 3 роки тому

    Hey errichto, do you think you can cover some stuff on approximation algorithms ?? Great Content as always btw !!

  • @rushik1663
    @rushik1663 3 роки тому

    Loved you video 🙏and respect.

  • @kaladinium7337
    @kaladinium7337 3 роки тому +4

    Errichto's a cool dude

  • @mahmoudabdelsattar8860
    @mahmoudabdelsattar8860 3 роки тому

    i enjoy it so much

  • @marufhasan9365
    @marufhasan9365 3 роки тому +1

    Keyboard cam for the win!!!

  • @matheuscosta5330
    @matheuscosta5330 3 роки тому

    Nice one Eri!

  • @md.shahnewazsiddiquelabib1467
    @md.shahnewazsiddiquelabib1467 3 роки тому

    hi errichto, love your videos! watching you code encourages me to code more! Could you please make a video explaining your debug template? It seems really handy but I don't know how to use it or how it actually works. It would be very helpful for many of us if you explain it! Thand you! :)

  • @bhargavpratimsharma2024
    @bhargavpratimsharma2024 3 роки тому

    I'm happy to see him Programming in *C* , as I'm learning it too as my first Programming language.

  • @alansosa2841
    @alansosa2841 3 роки тому +1

    Hey man, I love your videos, and I really want to begin in competitive programming, I'm 18 years old, I'm not bad at maths, but what kind of maths should I know? Thanks in advance

  • @aydin_ugur
    @aydin_ugur 3 роки тому

    Congrats man.

  • @kevinrojas7665
    @kevinrojas7665 3 роки тому

    Can you make a video going more in depth on your contest set up! Loved the video!

  • @gaganbarman6604
    @gaganbarman6604 3 роки тому +1

    William Lin is a genius 😱😱

  • @kebabthegreat369
    @kebabthegreat369 3 роки тому +21

    At 10:02, you say the complexity of your problem C solution you achieve is O(N) and not O(N log N), however sorting the vector will surely cause your solution to run in O(N log N), no? Thanks for the quick uploads btw :)

    • @Errichto
      @Errichto  3 роки тому +28

      You're right! I forgot that the input isn't sorted. It is O(N*log(N)) or could be O(sqrt(C) + N) with radix sort.

    • @jiahaoyao4653
      @jiahaoyao4653 3 роки тому

      @@Errichto I thought the sort for the length of elements (say W), so the complexity is O(WlogW +N)

    • @simba187
      @simba187 3 роки тому

      Kardesim yakiyorsun

    • @yonnelx2539
      @yonnelx2539 3 роки тому

      @@simba187 wtf

  • @cynerboy1650
    @cynerboy1650 3 роки тому

    Thank you for show your keyboard

  • @indiansoftwareengineer4899
    @indiansoftwareengineer4899 3 роки тому

    Nice video man,
    can I ask you personal question, where do you work and why not in FAANG?
    or do you have own company or business related to Coding?

  • @gasparzjhones7570
    @gasparzjhones7570 3 роки тому

    you are my hero

  • @realAgitated
    @realAgitated 3 роки тому +22

    I wonder if errichto ever worked as a janitor for colleges, solving random mathematical problems on the chalkboards in the hallway.

    • @OnlyUseMeEquip
      @OnlyUseMeEquip 3 роки тому +8

      lol how many people get the reference

    • @Errichto
      @Errichto  3 роки тому +56

      Yup, I used to solve unsolvable math problems anonymously as a janitor. But that was before I was sentenced to get therapy.

    • @uziboozy4540
      @uziboozy4540 3 роки тому +3

      Haha love that reference

    • @Make-Asylums-Great-Again
      @Make-Asylums-Great-Again 3 роки тому +2

      How do you like them apples?

    • @azurnxo2134
      @azurnxo2134 3 роки тому

      @@Errichto What reference? Lol

  • @FreeConqueror
    @FreeConqueror 3 роки тому

    it was really educational thanks

  • @vikash_7541
    @vikash_7541 3 роки тому

    Very informative 👍👍👍

  • @edwin8062
    @edwin8062 3 роки тому +11

    In question 2, I used recursion and he did it in a more optimized way. My code passed just because the constraints were weak. Difference between noob and pro coder.

    • @Errichto
      @Errichto  3 роки тому +16

      You should get AC by using as simple solution as possible. If your solution is indeed simpler than mine, you made a better choice because you saved some implementation time.

  • @RiteshYadav-vm9tb
    @RiteshYadav-vm9tb 3 роки тому

    Superb 🎉🎉🎉

  • @zorkgami4726
    @zorkgami4726 3 роки тому

    Thanks

  • @Pltkk
    @Pltkk 3 роки тому +1

    O kurde, jestem w szoku! Nie wiedziałem że polakiem jesteś xD

  • @pedrobernardo5449
    @pedrobernardo5449 3 роки тому +1

    Hey man, I am new on the programing world and I am trying to learn. Can you explain what does a terminal does and why you are always checking Guake. Thankyou

  • @Ziggy0120
    @Ziggy0120 3 роки тому +1

    everytime I see pros like this I feel inadequate about my own skills. I need to practice lol

  • @jamesmaddison1072
    @jamesmaddison1072 3 роки тому +2

    I got the O(n^3) approach where we define 2 random variables X1, X2.
    Where X1 is the sum accumulated by merging [L, i] to a single element
    Where X2 is the sum accumulated by merging [i + 1, R] to a single element
    So the answer would be a another random variable X = X1 + X2 + v[i] + v[i + 1]
    And By law of expectations : E[X] = E[X1] + E[X2] + v[i] + v[i + 1].
    However I did not get why your approach works, can you share the mathematical steps/rules/laws you used to get to the result.

  • @Sksahu_123
    @Sksahu_123 3 роки тому

    Congrats

  • @iloveiit7040
    @iloveiit7040 3 роки тому +13

    I was not able to solve any problem but I am waiting for Google Code Jam 2021 to win it

    • @Errichto
      @Errichto  3 роки тому +26

      If they give points for believing in yourself, you will be at the top for sure!

    • @arinroday302
      @arinroday302 3 роки тому

      @@Errichto oofff. It isnt that easy BestPythonTutorials. Will take years to learn

    • @PrinceGupta-jo8lo
      @PrinceGupta-jo8lo 3 роки тому

      @@Errichto you're vastly underestimating how blissfully ignorant some people are.

    • @Errichto
      @Errichto  3 роки тому +3

      But well, nothing is impossible. Better start practicing now though.

    • @iloveiit7040
      @iloveiit7040 3 роки тому +2

      @@Errichto thanks a lot for your suggestion

  • @ninos-oshana
    @ninos-oshana 3 роки тому +2

    Don't be disappointed because you finished second, you are still amazing

  • @neinist
    @neinist 3 роки тому +3

    Do you have some custom keboard settings? I find myself pressing shift more often to change numbers to symbols. Is there anyway to change the default?

    • @Errichto
      @Errichto  3 роки тому +3

      nope, nothing custom

  • @amarshukla07
    @amarshukla07 3 роки тому +6

    This was my first kickstart round ,got 1722 rank.I solved the first 2 parts of 3rd,knew that the 3rd question's last part was some binary search problem but couldn't do it.

    • @harshupreti1526
      @harshupreti1526 3 роки тому

      codeforces mei dekha tujhe /comments mei :)

  • @vishi8178
    @vishi8178 3 роки тому

    Blisko było
    Graty wielkie i tak

  • @smallchungus9729
    @smallchungus9729 3 роки тому +2

    can someone tell me what keyboard is that? it sounds amazing

  • @gnet888
    @gnet888 3 роки тому

    Really Genius

  • @svenjaaunes2507
    @svenjaaunes2507 3 роки тому

    Congrats and also very good format, easy to understand. For the last one I tried this method:
    Weights(n) := an array of n values such that when you multiply with the input array you get the correct result
    Weights(n) = F(Weights(n-1))
    F is too weird a function to describe here but it runs in linear time with n. So this pre-processing takes O(n^2) but you can globally use it. Then for each input array of length n, it is linear to take its dot product with Weights(n).
    I got the sample inputs right but kept getting wrong answer and couldnt discover the mistake. Can you spot anything immediately? Also do you think such expensive pre-processing is generally worth it if it will be globally available?
    Well here we go.
    F is actually like this: Sum of all vectors (p(1), p(2), p(3), ..., p(i), p(i), p(i+1), p(i+2), ..., p(n-1)) with 1

  • @user-xz8kf3jn3v
    @user-xz8kf3jn3v 3 роки тому +3

    since I can't speak english well, it's hard for me to understand what is the meaning of problems.....

  • @azurnxo2134
    @azurnxo2134 3 роки тому +2

    Can you link your keyboard? I had the same one gifted to me lol

  • @TrRick329
    @TrRick329 2 роки тому

    Hi Errichto, what is the keyboard you are using?

  • @defyteryt2452
    @defyteryt2452 3 роки тому

    good job keep it up

  • @atypical3800
    @atypical3800 3 роки тому

    zajebiscie kamil jestem dumny

  • @iliyas1155
    @iliyas1155 3 роки тому

    Great video - love the format!
    P.S.
    At 9:59, you said that your complexity is O(N), but you're doing "sort" in the beginning, so it's O(N*logN)
    But that's not very important

    • @Errichto
      @Errichto  3 роки тому +3

      Yup, someone has already pointed this out in comments before. It's O(N*log(N)) because of sort.

  • @bossyull4647
    @bossyull4647 3 роки тому

    Smooth odo 😳