The Unfair Way I Got Good At Leetcode

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 ก.ค. 2024
  • #leetcode

ความคิดเห็น • 84

  • @nonefvnfvnjnjnjevjenjvonej3384
    @nonefvnfvnjnjnjevjenjvonej3384 12 วันที่ผ่านมา +51

    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 12 วันที่ผ่านมา +9

      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 12 วันที่ผ่านมา +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 12 วันที่ผ่านมา

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

    • @vectoralphaSec
      @vectoralphaSec 11 วันที่ผ่านมา +6

      ​@@skillgamer76no it's not lol.

    • @psyedd
      @psyedd 9 วันที่ผ่านมา +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 11 วันที่ผ่านมา +25

    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 12 วันที่ผ่านมา +34

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

    • @Zellie1994
      @Zellie1994 11 วันที่ผ่านมา +4

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

  • @user-gn4im3rh6n
    @user-gn4im3rh6n 10 วันที่ผ่านมา

    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❤❤❤

  • @vectoralphaSec
    @vectoralphaSec 11 วันที่ผ่านมา +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 11 วันที่ผ่านมา

      Sounds like you suck at it lowkey

  • @yashjaiswal4828
    @yashjaiswal4828 15 วันที่ผ่านมา +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  15 วันที่ผ่านมา +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

  • @tezkalow
    @tezkalow 2 วันที่ผ่านมา

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

  • @glowiboi
    @glowiboi 11 วันที่ผ่านมา +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?

  • @rajajrt_
    @rajajrt_ 10 วันที่ผ่านมา

    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.

  • @anand_r7784
    @anand_r7784 13 วันที่ผ่านมา +6

    I'm still looking out for the unfair part 🤔

    • @topswe
      @topswe  13 วันที่ผ่านมา +1

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

  • @BonerPauler
    @BonerPauler 11 วันที่ผ่านมา +1

    thank you your videos are helpful

  • @guyindisguise
    @guyindisguise 11 วันที่ผ่านมา

    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)?

  • @shirish_yt
    @shirish_yt 10 วันที่ผ่านมา +1

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

  • @chuangfan5621
    @chuangfan5621 10 วันที่ผ่านมา

    Damn ! My man !

  • @ManojKumar-rp6sp
    @ManojKumar-rp6sp 14 วันที่ผ่านมา +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  14 วันที่ผ่านมา +3

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

  • @akshaysingh548
    @akshaysingh548 13 วันที่ผ่านมา +1

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

    • @topswe
      @topswe  12 วันที่ผ่านมา +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.

  • @Chessnerd2003
    @Chessnerd2003 6 วันที่ผ่านมา

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

  • @Qwerty123zzuy
    @Qwerty123zzuy 13 วันที่ผ่านมา +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  13 วันที่ผ่านมา +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 12 วันที่ผ่านมา

      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.

  • @kavoya
    @kavoya 13 วันที่ผ่านมา +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  13 วันที่ผ่านมา +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 13 วันที่ผ่านมา +3

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

    • @topswe
      @topswe  13 วันที่ผ่านมา +6

      Python is the best choice! :)

  • @mohammedkaifullakazim
    @mohammedkaifullakazim 15 วันที่ผ่านมา +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?

    • @ShubhamGhuleCode
      @ShubhamGhuleCode 15 วันที่ผ่านมา +1

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

    • @topswe
      @topswe  15 วันที่ผ่านมา +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  15 วันที่ผ่านมา

      Great advice!

    • @mohammedkaifullakazim
      @mohammedkaifullakazim 15 วันที่ผ่านมา +1

      @@topswe So any tip to improve ?

    • @topswe
      @topswe  15 วันที่ผ่านมา

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

  • @viewer1821
    @viewer1821 13 วันที่ผ่านมา +3

    topswe be like: i will eat the whole platform only

    • @topswe
      @topswe  13 วันที่ผ่านมา

      haha took me over 3 years! :)

  • @sarveshjoshi6913
    @sarveshjoshi6913 13 วันที่ผ่านมา +1

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

    • @topswe
      @topswe  13 วันที่ผ่านมา

      Wdym by late striking?

  • @zRe678
    @zRe678 12 วันที่ผ่านมา +2

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

    • @topswe
      @topswe  12 วันที่ผ่านมา

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

  • @MOHAMMADIQBALRASULSEEAM
    @MOHAMMADIQBALRASULSEEAM 15 วันที่ผ่านมา +20

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

    • @topswe
      @topswe  15 วันที่ผ่านมา +2

      @@MOHAMMADIQBALRASULSEEAM what happens if you submit multiple times?

    • @takeuchi5760
      @takeuchi5760 14 วันที่ผ่านมา +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 14 วันที่ผ่านมา

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

    • @ayushmaanpandey5233
      @ayushmaanpandey5233 13 วันที่ผ่านมา +7

      Racial discrimination😢

    • @Daiviklk
      @Daiviklk 12 วันที่ผ่านมา

      Optimise bro

  • @rkninja-pc4ko
    @rkninja-pc4ko 15 วันที่ผ่านมา +2

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

    • @topswe
      @topswe  15 วันที่ผ่านมา +1

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

    • @aryansudan2239
      @aryansudan2239 14 วันที่ผ่านมา +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  14 วันที่ผ่านมา +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 14 วันที่ผ่านมา

      @@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 15 วันที่ผ่านมา +2

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

    • @topswe
      @topswe  15 วันที่ผ่านมา +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 15 วันที่ผ่านมา +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  14 วันที่ผ่านมา +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  14 วันที่ผ่านมา +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  14 วันที่ผ่านมา +1

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

  • @extrad3983
    @extrad3983 14 วันที่ผ่านมา +1

    Wow. So impressive 👏

    • @topswe
      @topswe  14 วันที่ผ่านมา +1

      Thank you! Cheers!

  • @sarveshjoshi6913
    @sarveshjoshi6913 13 วันที่ผ่านมา +1

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

    • @topswe
      @topswe  13 วันที่ผ่านมา

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

    • @seraph1007
      @seraph1007 11 วันที่ผ่านมา

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

    • @ManOfCultureUSA
      @ManOfCultureUSA 10 วันที่ผ่านมา

      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 9 วันที่ผ่านมา

      @@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 8 วันที่ผ่านมา

      @@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.

  • @ManOfCultureUSA
    @ManOfCultureUSA 10 วันที่ผ่านมา

    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.