The Unfair Way I Got Good At Leetcode

Поділитися
Вставка
  • Опубліковано 5 жов 2024

КОМЕНТАРІ • 86

  • @nonefvnfvnjnjnjevjenjvonej3384
    @nonefvnfvnjnjnjevjenjvonej3384 2 місяці тому +60

    i want to say something to my younger colleagues. the software industry and the internet that you see today, did not come from people who did leetcode and joined a big company. it came from people who loved programming and built new things with software. if at all possible, try to say no to companies who do leetcode, build useful software and try and sell it on the open market. who knows, the world might become a better place and you might make a lot more money.

    • @ismbks
      @ismbks 2 місяці тому +8

      og is right, and as someone who doesn't get much enjoyment from doing leetcodes i am even more inclined to buy this narrative

    • @skillgamer76
      @skillgamer76 2 місяці тому +2

      Man I just want to earn faang money and be a cog in a wheel. It’s the easiest method to being a multi millionaire.

    • @nonefvnfvnjnjnjevjenjvonej3384
      @nonefvnfvnjnjnjevjenjvonej3384 2 місяці тому

      @@skillgamer76 unfortunately they will also make you feel like their b*tch.

    • @vectoralphaSec
      @vectoralphaSec 2 місяці тому +5

      ​@@skillgamer76no it's not lol.

    • @psyedd
      @psyedd 2 місяці тому +1

      @@vectoralphaSec it is if you're lucky enough to stay a cog for 35 years, live way below your means, and invest regularly. Power of compounding will get you there.

  • @ryiv1848
    @ryiv1848 2 місяці тому +30

    Takeaways:
    1. Learn from examples
    2. Join Communities
    3. Spaced Repetition
    4. Consistent Practice
    Beginner tip: if stuck on a problem for too long, bring your ego down and study the solution.

  • @Dipj01
    @Dipj01 2 місяці тому +35

    As someone who has never done Leetcode, I don't why YT recommended this. Interesting though.

    • @Zellie1994
      @Zellie1994 2 місяці тому +4

      God bless your innocence. Once you’re in it, you can’t get out.

  • @vectoralphaSec
    @vectoralphaSec 2 місяці тому +6

    Its the most difficult challenge a software engineer HAS to face in their career??? Uh NO. You dont have to do it. Any employer that puts doing leetcode on a pedestal is not a employer you want to work for. Leetcode is a plague on the coding industry.

    • @teqnify63
      @teqnify63 2 місяці тому

      Sounds like you suck at it lowkey

  • @shirish_yt
    @shirish_yt 2 місяці тому +1

    whatever you told is not unfair way, its just sheer discipline and hardwork

  • @簡紹翔-n8x
    @簡紹翔-n8x 2 місяці тому

    This is one of the best video I’ve seen on how to be good at leetcode. It basically gathers the best advice from all the other sources and provides clear guidelines and strategies❤❤❤

  • @yt-sh
    @yt-sh Місяць тому

    thank you for sharing tips and tricks
    and congratulations on your hard work being paid off!

  • @anand_r7784
    @anand_r7784 3 місяці тому +6

    I'm still looking out for the unfair part 🤔

    • @topswe
      @topswe  3 місяці тому +1

      Some tips like: gamifying leetcode, treating every problem like a real interview, using curated lists, etc.

  • @rajajrt_
    @rajajrt_ 2 місяці тому

    Thank you! Because of you, I'm know on my 75th problems. I'm doing neetcode 150, and can't believe I made it this far.

  • @tezkalow
    @tezkalow 2 місяці тому

    sounds like me solving chess puzzles for months and eventually grinded to 3k puzzle elo

  • @Chessnerd2003
    @Chessnerd2003 2 місяці тому

    Bro is giving tips like he had solved all the leetcode problems

  • @yashjaiswal4828
    @yashjaiswal4828 3 місяці тому +3

    This was super helpful and inspiring! I’m nearing completion for my shortlisted topics on Neetcode 150. Can you make a video about the best way to revise leetcode problems if you have any tips for that? Thanks! Love your content! :)

    • @topswe
      @topswe  3 місяці тому +2

      Glad it was helpful! That’s a good idea, thanks. In general I’d make sure to take detailed notes, and try to review every few weeks. You want to write a sentence about the main insight necessary to solve the problem

  • @viewer1821
    @viewer1821 3 місяці тому +3

    topswe be like: i will eat the whole platform only

    • @topswe
      @topswe  3 місяці тому

      haha took me over 3 years! :)

  • @ManojKumar-rp6sp
    @ManojKumar-rp6sp 3 місяці тому +8

    Did you like go back and solve the questions again to like revise them , cuz I forget some q's after some time

    • @topswe
      @topswe  3 місяці тому +4

      Yes for sure, it’s great to revise every few weeks! Spaced repetition

  • @BonerPauler
    @BonerPauler 2 місяці тому +1

    thank you your videos are helpful

  • @glowiboi
    @glowiboi 2 місяці тому +3

    I am a new coder, and I not familiar with optimization and time complexity. I know what they are, but I often mis-identify the complexity of a solution. Do you have resources or tips for learning this?

  • @MOHAMMADIQBALRASULSEEAM
    @MOHAMMADIQBALRASULSEEAM 3 місяці тому +21

    How some people always beat 100% on Leetcode ? If I submit the same solution mine beats 50%. Could you please explain

    • @topswe
      @topswe  3 місяці тому +2

      @@MOHAMMADIQBALRASULSEEAM what happens if you submit multiple times?

    • @takeuchi5760
      @takeuchi5760 3 місяці тому +5

      That's just a leetcode compiler and ranking thing, it changes everytime, and it's irrelevant to the efficiency of your program as long as you know your time and space complexities are the most optimal for the problem.

    • @ManojKumar-rp6sp
      @ManojKumar-rp6sp 3 місяці тому

      @@takeuchi5760 yeah its cuz leecode compiler is server based so yeah

    • @ayushmaanpandey5233
      @ayushmaanpandey5233 3 місяці тому +7

      Racial discrimination😢

    • @Daiviklk
      @Daiviklk 3 місяці тому

      Optimise bro

  • @akshaysingh548
    @akshaysingh548 3 місяці тому +1

    can you share a video to show how you take notes, Thank for vid

    • @topswe
      @topswe  2 місяці тому +2

      Thanks for the feedback! Good idea, at a high level you want to write 1 sentence on the key insight to solve the problem. Also time space complexity.

  • @mohammedkaifullakazim
    @mohammedkaifullakazim 3 місяці тому +4

    Whenever I see the question on leetcode, i figure out what needs to be done, but when it's time to code I cannot even if I am at the intermediate level, the logic goes wrong, what can I do?

    • @ShubhamGhuleCodes
      @ShubhamGhuleCodes 3 місяці тому +1

      I would suggest you to search A2OJ ladder and solve atleast 15-20 div2A problems...it will help with the implementation

    • @topswe
      @topswe  3 місяці тому +1

      Yeah it’s an implementation issue, which is the easy part thankfully! I would practice hard implementation problems , involving data structures. For instance, lru/lfu cache.

    • @topswe
      @topswe  3 місяці тому

      Great advice!

    • @mohammedkaifullakazim
      @mohammedkaifullakazim 3 місяці тому +1

      @@topswe So any tip to improve ?

    • @topswe
      @topswe  3 місяці тому

      @@mohammedkaifullakazim can you give an example of a question you’re stuck on?

  • @zRe678
    @zRe678 2 місяці тому +2

    how much time did you dedicate to leet code a day to achive your result? nice video btw

    • @topswe
      @topswe  2 місяці тому

      Thanks for the support! I leetcoded on average 3 hours on weekdays, and 8-10 hours most weekends.

  • @Qwerty123zzuy
    @Qwerty123zzuy 3 місяці тому +3

    Do u have a map of the most frequently asked patterns? I feel like I am starting to learn things which will never be asked in an interview(like bellman-ford).

    • @topswe
      @topswe  3 місяці тому +1

      great question. you can check the 20 patterns in the leetcode 75, or see the most frequently asked tags on leetcode directly! my topswe100 list covers the important questions.

    • @madghostek3026
      @madghostek3026 2 місяці тому

      I think stuff like bellman ford, or in general more convolved graph algoritms, are something you should be aware of anyway, at least that they apply to certain problems. I remember the idea but I wouldn't be able to implement off the top of my head, but I know what it does and I wont reinvent the wheel when asked.

  • @sarveshjoshi6913
    @sarveshjoshi6913 3 місяці тому +2

    after solving so much problems ..u must be solving all questions in the contest within less than half an hour i guess

    • @topswe
      @topswe  3 місяці тому

      Yeah if the problems aren’t too difficult I can usually finish within 30 minutes :)

    • @seraph1007
      @seraph1007 2 місяці тому

      @@topswe if you're finishing within 30 minutes you wouldn't be only 2200 rating

    • @ManOfCultureUSA
      @ManOfCultureUSA 2 місяці тому

      If you can solve all 3 problems within 30 minutes then y your rating is at 2200 ? Shouldn't it be more ? The people I know who solved all questions in 30 minutes have rating 2800+ . You are clearly lying.

    • @seraph1007
      @seraph1007 2 місяці тому

      @@ManOfCultureUSA yep, i thought so as well, also self-proclaiming rank 10 when thats just problems solved is pretty pathetic, every top cper / leetcoder looks at contest rating

    • @param1797
      @param1797 2 місяці тому

      @@seraph1007 yeah looks like a copy paster tbh. his site has “LC Patterns” with just binary search. no videos of him solving problems ever and just boasting about his rank and number of problems solved.

  • @chuangfan5621
    @chuangfan5621 2 місяці тому

    Damn ! My man !

  • @kavoya
    @kavoya 3 місяці тому +3

    hey there!
    do you recommend trying out leetcode if one knows the fundamental of a language? or would you recommend learning data structures and algorithms to a certain degree before jumping onto leetcode?

    • @topswe
      @topswe  3 місяці тому +1

      I would always suggest to dive into leetcode even if you don’t know any dsa. There’s tons of problems that you can solve just based off intuition, like simulation, greedy problems. And learning dsa from leetcode is great since you can directly see its applications! :)

  • @arshadalam
    @arshadalam 3 місяці тому +3

    Should I do java or C++ for leetcode, I am thinking to do full stack development, so which language should I go with.?

  • @guyindisguise
    @guyindisguise 2 місяці тому

    I found this very interesting. I always thought that the way to improve would be to do a lot of hard thinking and try to come up with all the clever solutions yourself and not "just" first try yourself and then look up the answers (but actually solve everything yourself).
    @topsw do you think there's a difference in how one should approach this depending on the background (CS degree vs self-taught)?

  • @rkninja-pc4ko
    @rkninja-pc4ko 3 місяці тому +2

    Have you done any competitive programming like codeforces or only focused on leetcode?

    • @topswe
      @topswe  3 місяці тому +1

      I’ve focussed on Leetcode but now that I’m done I’ve been working on codeforces and atcoder!

    • @aryansudan2239
      @aryansudan2239 3 місяці тому +2

      idk man even the hardest LC qs pale in front of CF D/E qs. How easy is CF for you after basically running through all of Leetcode

    • @topswe
      @topswe  3 місяці тому +1

      @@aryansudan2239 yeah that is a good point. Do you mean div2s D/E? I can solve most problems on Div 3/4, haven’t done many Div2s.

    • @ManojKumar-rp6sp
      @ManojKumar-rp6sp 3 місяці тому

      @@topswe I can understand that, my freind has solved around 900 questions on Leetcode and still managed to have same contest rating as your , his is 2218.
      But yeah , he had been doing CP on codeforces alongside as well

  • @user-be8ud2qd2d
    @user-be8ud2qd2d 3 місяці тому +2

    What ratio would you recommend for solving questions by difficulty easy:medium:hard?

    • @topswe
      @topswe  3 місяці тому +2

      For beginners, 100% easy. Intermediate, 50;50 easy and medium. Do not do hards until you are comfortable with easies and mediums.

    • @abhishek-94
      @abhishek-94 3 місяці тому +1

      @@topswe Thank you. Your channel is very good. I saw your video where you asked to do 150 problems, and then practice weak areas. So in total how many problems is a good ballpark figure to target.
      If I am a beginner, should I go breadth first and practice 5-10 problems of all areas: array, string, graph, two pointer, dp etc.
      And then move to medium. Then, finally to hard problems?

    • @topswe
      @topswe  3 місяці тому +1

      @@abhishek-94 I think start with leetcode 75 list or top interview 150. You should target about 200 in total at the minimum

    • @topswe
      @topswe  3 місяці тому +1

      @@abhishek-94 doing the list will give you breadth. And yeah don’t do hards until you’re comfortable with easies and mediums. Glad you like the channel! :)

    • @topswe
      @topswe  3 місяці тому +1

      @@abhishek-94 also have the topswe100 on my website, it’s ordered by difficulty roughly.

  • @sarveshjoshi6913
    @sarveshjoshi6913 3 місяці тому +1

    do you revise tough or medium but late striking questions often?

    • @topswe
      @topswe  3 місяці тому

      Wdym by late striking?

  • @jaswanthandhavarapu4325
    @jaswanthandhavarapu4325 Місяць тому

    U r final boss

  • @ManOfCultureUSA
    @ManOfCultureUSA 2 місяці тому

    Bro, 2200 rating with all problems solved is not impressive tbh. This just shows that you were seeing solutions of too many problems too quickly. If you would have given enough thoughts to those problem, you would have been at least 2800 + . I am saying this because I just solved 300 problems and have a rating of 2000 on leetcode.