Leetcode Biweekly #56 (2nd Place)

Sdílet
Vložit
  • čas přidán 3. 06. 2024
  • I almost won leetcode.com/contest/biweekly...
    Live-stream with more detailed explanation of Q3 and Q4 • LeetCode Biweekly 56 A...
    0:00 Q1. Count Square Sum Triples
    0:46 Q2. Nearest Exit from Maze
    4:56 Q3. Sum Game
    10:09 Q4. Minimum Cost to Reach Destination
    14:38 Results
    Subscribe for more educational videos on algorithms, coding interviews and competitive programming.
    - Github repository: github.com/Errichto/youtube
    - Live streams on 2nd YT channel and on Twitch: / errichto2 & / errichto
    - FB and Twitter: / errichto & / errichto
    - Frequently Asked Questions: github.com/Errichto/youtube/w...

Komentáře • 116

  • @Froparadu
    @Froparadu Před 2 lety +10

    Holy shit! I just watched you solve the second problem and already learnt 2 new things -
    1. Using dx and dy as against using modulo to figure out the directions.
    2. Using vector as a queue in C++
    It’s these small things that make a difference in competitive programming I guess.

  • @limakbear7029
    @limakbear7029 Před 2 lety +56

    *0:00** Count Square Sum Triples*
    *0:46** Nearest Exit from Maze*
    *4:56** Sum Game*
    *10:09** Minimum Cost to Reach Destination*

  • @alphabeta1428
    @alphabeta1428 Před 2 lety +36

    Thanks for sharing your solutions. It’s great to see you participating in LC contests and helping folks out. Hoping you will keep up the good work by participating in future contests.

  • @jimmie8101
    @jimmie8101 Před 2 lety +13

    "You have attempted to run to soon. Please try again later."
    lmao bruh..

  • @josephwong2832
    @josephwong2832 Před 2 lety +12

    Errichto is motivating me to start the weekly LC contest now haha

  • @PleaseTellMeMoreJust4Fun

    Nie mogłam uwierzyć, że jesteś z Polski!
    Bardzo ciekawe wywiady, rozwiązania zadań algorytmicznych
    Podziwiam! :)

  • @sahil.rajput2000
    @sahil.rajput2000 Před 2 lety +12

    Loved this screencast

  • @sauravkumarsonu829
    @sauravkumarsonu829 Před 2 lety +2

    I really love your coding style.

  • @KjepekSNK
    @KjepekSNK Před 2 lety +2

    Bylo blisko...i tak jestes najlepszy ;))

  • @haoxu5533
    @haoxu5533 Před 2 lety +6

    My python solution for Q4 is exactly same algorithm as you, however, it gets TLE.

  • @ericcannon6096
    @ericcannon6096 Před 2 lety

    Hey Errichto, do you only do training for people in high level competitions or do you train lower level competitors also?

  • @miloradowicz
    @miloradowicz Před 2 lety +44

    Couldn't solve the fourth problem for straight two months. Didn't even occur to me to iterate through all possible starting time values.
    Also, amazing coding speed.

    • @zdravkobeykov
      @zdravkobeykov Před 2 lety

      How 2 months when it's 3 weeks old?

    • @miloradowicz
      @miloradowicz Před 2 lety +6

      @@zdravkobeykov it was a similar problem from ICPC drills. The only difference was that routes cost various amounts of currency, and you had to find the quickest route that was within the given budget.

    • @cydrus2856
      @cydrus2856 Před 2 lety

      Pog

  • @focus15624
    @focus15624 Před 2 lety +1

    Is CP book Competitive Programming 4 by Steven Halim any help?

  • @17teacmrocks
    @17teacmrocks Před 2 lety +1

    @Errichto, can Q2 be solved recursively ?

  • @tyrellwreleck4226
    @tyrellwreleck4226 Před 2 lety +2

    I graduated as a computer engineer and i've only done a few problems in the past 4 years because i was forced to focus on different disciplines in my university. How long will it take to get me back in shape.
    btw im new to this channel and my competitive programming skill is potato.

  • @krishnakumarr2121
    @krishnakumarr2121 Před 2 lety +4

    I think all people who practices more get to solve problems faster..... That why I always see frequent names in the top 20 list..... It's really that recognizing patterns in the problem fast......! 👍🏻

  • @angkhoavo6305
    @angkhoavo6305 Před 2 lety

    thanks for the solution , it was very great :D

  • @chetanmishra1662
    @chetanmishra1662 Před 2 lety

    Youre a god bro i saw your rating on leetcode please make that kind of video

  • @angkhoavo6305
    @angkhoavo6305 Před 2 lety

    anh there codeforce will have a contest tonight , can you tell me when will the soltuion of the contest upload ?

  • @youngee9403
    @youngee9403 Před 2 lety +2

    man Sum game was so confusing. I had no idea how to even start

  • @limakbear7029
    @limakbear7029 Před 2 lety +6

    🧸 love keyboard cam

  • @piyusheklavya
    @piyusheklavya Před 2 lety

    Please make a video on topological sort and also on TRIE

  • @amitshah817
    @amitshah817 Před 2 lety

    Thank you friend ☺️

  • @lequocthinh8992
    @lequocthinh8992 Před 2 lety +1

    Thank you!

  • @TheHasanJr
    @TheHasanJr Před 2 lety +1

    Love your videos.. Keep going. Btw would u like to go to FAANG?

  • @mdshahadatkabir8329
    @mdshahadatkabir8329 Před 2 lety

    Where r u sir? Can't see your video for so long

  • @progamerzzz1237
    @progamerzzz1237 Před 2 lety +3

    god gifted him with extraordinary intelligence but forgot to add the portion for remembering youtube passwords.

    • @limakbear7029
      @limakbear7029 Před 2 lety +1

      He already said in a stream that after a stream on the second channel he is taking break in this month.

    • @progamerzzz1237
      @progamerzzz1237 Před 2 lety +1

      @@limakbear7029 ohh I didn’t know that

  • @aryann3045
    @aryann3045 Před 2 lety +1

    In the second question, is there any reason why you used vector of pairs instead of a queue ?

  • @Dennis-Ong
    @Dennis-Ong Před 2 lety +1

    Hi Eric , love these short vids. What keyboard are you using? Nvm saw your answer below

    • @limakbear7029
      @limakbear7029 Před 2 lety

      You can read his FAQ

    • @kurdicodes9167
      @kurdicodes9167 Před 2 lety

      Where can i find that faq i really need the name of that keyboard @limak bear

    • @kurdicodes9167
      @kurdicodes9167 Před 2 lety

      @@limakbear7029 where can i find his faq i really need the name that keyboard

    • @Eddie-um6cw
      @Eddie-um6cw Před 2 lety

      @@kurdicodes9167 yeah where @@

  • @skyveil
    @skyveil Před 2 lety

    @Errichto why have you not posted any videos recently

  • @ofurhieraphael7633
    @ofurhieraphael7633 Před 2 lety

    You really love coming in second place, Great job though

  • @manfr3d1
    @manfr3d1 Před 2 lety

    Great video

  • @Hacker-rb8ug
    @Hacker-rb8ug Před 2 lety

    bro, do you have method about recover winRAR zip files password ?

  • @sinify6676
    @sinify6676 Před 2 lety

    Python TLE for the first problem with the exact same code lol, had to change mine to precalculate the possible c**2 values in a set instead (not before losing 5min from penalty though). Also, q3 was so hard for me to figure out during the contest.

    • @kameshkotwani
      @kameshkotwani Před 2 lety +3

      That's why c++ and java are preferred, Python is slow, for exact same logic it takes considerable amount to execute.

    • @sinify6676
      @sinify6676 Před 2 lety +4

      @@kameshkotwani On codeforces, yes. But they tune the time limits relative to the langauge on leetcode (not always perfectly). Generally any solution with optimal runtime complexity will pass in any language on the site.

    • @blackboxbs8642
      @blackboxbs8642 Před 2 lety +2

      @@kameshkotwani your name sounds indian and japanese

  • @ishaanbhimwal
    @ishaanbhimwal Před 2 lety

    Which distro??

  • @mdshahadatkabir8329
    @mdshahadatkabir8329 Před 2 lety

    After so long first comment love from love ur videos please do make regularly

  • @mohammedwaseem8599
    @mohammedwaseem8599 Před 2 lety

    In which company you work??

  • @oyeshpatel8791
    @oyeshpatel8791 Před 2 lety +4

    In just 16 min😵😵

  • @mdkamruzzaman7174
    @mdkamruzzaman7174 Před 2 lety

    How you compile the code

  • @babasandasi3006
    @babasandasi3006 Před 2 lety +11

    which keyboard is that and what is you typing speed??

    • @Errichto
      @Errichto  Před 2 lety +15

      100+ WPM, logitech ultrax premium (an old keyboard, not produced anymore)

    • @ankitmajee
      @ankitmajee Před 2 lety

      @@Errichto very fast

    • @lutfiikbalmajid3128
      @lutfiikbalmajid3128 Před 2 lety

      @@ankitmajee yep, it is very fast, because typing while thinking

  • @kobopanda2476
    @kobopanda2476 Před 2 lety

    how much time did you spend a day solving problems to be a red coder?

  • @aakashvishwakarma4653
    @aakashvishwakarma4653 Před 2 lety

    Best book for recursion ??

  • @yishayhazan1040
    @yishayhazan1040 Před 2 lety

    He's typing faster than I can think

  • @kongzilla2897
    @kongzilla2897 Před 2 lety +2

    This is so satisfying :)

    • @anjalirani1796
      @anjalirani1796 Před 2 lety

      czcams.com/video/UlJi2U6yYmQ/video.html for the august leetcode challenge, you can follow this

  • @jhonny567_
    @jhonny567_ Před 2 lety +2

    No entiendo que dices xd, pero me gustan tus videos, nuevo sub bro :D

  • @arab2aljaafary72
    @arab2aljaafary72 Před 2 lety

    U'r awesome🌸

  • @blackout_yash
    @blackout_yash Před 2 lety

    Loved this

  • @sabbirhasan3372
    @sabbirhasan3372 Před 2 lety

    Plz make a video about IOI. Plz sir❤️.

  • @vv-sx4xs
    @vv-sx4xs Před 2 lety

    Dude, who finish first??

  • @user-fb7hw1el1c
    @user-fb7hw1el1c Před 2 lety

    Errichto my idol!!!!!!!!!!!!

  • @Displant
    @Displant Před 2 lety

    nice errichto

  • @driziiD
    @driziiD Před 2 lety

    question 3 sounds like minimax

  • @criptik5208
    @criptik5208 Před 2 lety +1

    Are you on instagram ?

  • @Dineshkumar-wj8so
    @Dineshkumar-wj8so Před 2 lety +3

    Wizard

  • @cya3mdirl158
    @cya3mdirl158 Před 2 lety

    Na szczęście w pracy nie potrzeba takich problemów rozwiązywać.

  • @LORDGULSHAN
    @LORDGULSHAN Před 2 lety +1

    Imagine getting a reply from Erricto 🙂

  • @nachos3626
    @nachos3626 Před 2 lety

    u use linux?

    • @limakbear7029
      @limakbear7029 Před 2 lety

      Yes, he is comfortable using Linux (Ubuntu) he also use Windows, because it's convenient to stream.

  • @user-sw5fl5vj5i
    @user-sw5fl5vj5i Před 2 lety

    U R SO SMART!!!

  • @abhishekanand1895
    @abhishekanand1895 Před 2 lety

    I love you brother

  • @vimalkumardubey6834
    @vimalkumardubey6834 Před 11 měsíci

    Legend ❤

  • @progamerzzz1237
    @progamerzzz1237 Před 2 lety

    Hey man.. you can always change your password if you have forgotten it. If u need a tutorial ping me. But please upload

  • @defini7
    @defini7 Před 2 lety

    0:02 3 hands???????

  • @blackboxbs8642
    @blackboxbs8642 Před 2 lety

    Dont you find it annoying to use mouse while typing. What if we could control without mouse. Mouse is great but when you are too much into typing handling mouse breaks your flow.

  • @justworkfine321
    @justworkfine321 Před 2 lety

    Anybody had attend errichto classes?

  • @MinhExplores
    @MinhExplores Před 2 lety

    except programming, what have you learned to solve problems that fast ?

  • @dumbfailurekms
    @dumbfailurekms Před 2 lety

    RIP?
    eyy nvm hes on twitch

  • @gritadorsemdestino77
    @gritadorsemdestino77 Před 2 lety +1

    i ask myself how are you so good at programming with only less than 2k problems in codeforces

    • @RyanKOnk
      @RyanKOnk Před 2 lety +2

      He did a lot of Math problems and that too for years

    • @your_name96
      @your_name96 Před 2 lety +2

      He solved on different platforms duh, TCO was pretty big pre-2018

  • @sabbirhasan3372
    @sabbirhasan3372 Před 2 lety

    I am 17 years old.I want be good at competitive programming. Please give me some suggestions.

    • @limakbear7029
      @limakbear7029 Před 2 lety +4

      Solve problems, you can watch his "how to start with competitive programming" video.

    • @Magmatic91
      @Magmatic91 Před 2 lety

      High IQ

    • @sabbirhasan3372
      @sabbirhasan3372 Před 2 lety

      What are you meaning by high iq

    • @faizan346
      @faizan346 Před 2 lety +1

      If you know hindi i can recommend you a good channel to start with

    • @faizan346
      @faizan346 Před 2 lety

      @@sabbirhasan3372 and once you start never stop. atleast do one ques even if you are very busy. Being consistent is the key.

  • @rajaspaunikar9695
    @rajaspaunikar9695 Před 2 lety

    Not even looking at the keyboard

  • @gamer9x
    @gamer9x Před 2 lety +1

    Please, the way to reverse engineer and hack android apk!

  • @redix7964
    @redix7964 Před 2 lety

    Witam

  • @harshagarwal7832
    @harshagarwal7832 Před 2 lety +2

    Why you do so much competitive coding the things you know and how your brains works is more more more more than enough for the best best best company in the worlld 😂😂

  • @user-ly8fh8th5q
    @user-ly8fh8th5q Před 2 lety

    اكو عرب بالطيارة ؟

  • @itz_me_imraan02
    @itz_me_imraan02 Před 2 lety

    Why don't you start a series for DSA 😕😕

  • @Ravi37270
    @Ravi37270 Před 2 lety

    First view 😁

  • @babasandasi3006
    @babasandasi3006 Před 2 lety

    fourth

  • @khz2172
    @khz2172 Před 2 lety

    1st view

  • @ahmedaymanelsayed4904
    @ahmedaymanelsayed4904 Před 2 lety

    Anyone please help me 🥰🥰🥰🥰
    If I want to be expert at c++ and participate in large tournaments what is the full tree or what should I learn from basics to expert and how long does it takes for me and thanks 🥰🥰🥰🥰

  • @unblockedfilms8785
    @unblockedfilms8785 Před 2 lety

    Hai Sir Can You Help my faceboook