How To Get Good At LeetCode (as a beginner)

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 พ.ย. 2024

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

  • @SwagGM
    @SwagGM 2 หลายเดือนก่อน +6

    Could you please make a video on how to go about dp...
    it's the most brutal topic out there... Any shotuout to any other person or reference, would be gr8....

    • @gauravbanerjee2898
      @gauravbanerjee2898 2 หลายเดือนก่อน

      First master recursion then go for dp

  • @filimonmihai6240
    @filimonmihai6240 2 หลายเดือนก่อน +5

    how is ranking calculated if you're rank 10 but you did all the problems?

    • @topswe
      @topswe  2 หลายเดือนก่อน +1

      Good question, not really sure how they tiebreak but I fluctuate a lot. My highest was rank 5!

  • @Unknown-bz2pl
    @Unknown-bz2pl 2 หลายเดือนก่อน +3

    Great video ❤! I love how you explain everything, subbed right away. I have a question about switching from C++ to Python. While I understand Python’s simplicity helps focus on problem-solving, doesn’t C++ offer deeper insights into memory management and low-level operations? I’m using C++ to build that foundational knowledge, but should i switch to Python. Any advice? Thx 😊

    • @emenikeanigbogu9368
      @emenikeanigbogu9368 2 หลายเดือนก่อน +3

      You should def switch to python. For interview problems they are mostly space and time complexity focused. By using C++ you're opening yourself to more complicated questions in an interview and slower solve times. Using python allows you to make the process of constructing a solution more frictionless. For personal development c++ is great, but for interviews especially entry it isn't worth doing it in leetcode

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

      @@Unknown-bz2pl thanks for the support! I agree that knowing c++ is important for fundamentals and deeper insights. And some jobs require it. But in general for generic swe interviews, you should use Python - it just saves a lot of time so you can focus on the problem solving portion. Practicing both can be useful, but in interviews you should use Python.

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

      @@emenikeanigbogu9368 great answer!

  • @KrishtrishbAlti
    @KrishtrishbAlti 2 หลายเดือนก่อน

    Which list should I start from for python problems. Like so that I will Lear every concept

  • @anonymous........
    @anonymous........ หลายเดือนก่อน +2

    1:15 NeetCode 150 is enough ?

  • @SidaqpreetSingh-b9i
    @SidaqpreetSingh-b9i หลายเดือนก่อน

    Hi TopSWE , I just started leetcode and made a brutal mistake of solginv questions by chronological order. I was able to solve 2 sum , but when I got to the median of 2 sorted arrays problem , I just couldn't figure out. I have studied DSA theory at my university course , tried to apply what all I have learnt (two pointer approach , aucillary arrays and what not) but still couldn't cook up the solution. I am feeling very demotivated and lack of confidence. Also alot of my solutions just give runtime errors and it becomes so frustrating debugging all those solutions and seeing the reds when I run a solution. I just want to know whether is really learnanble or am I too dumb afterall. I really dream to solve each Leetcode Problem like you. Would appreciate if you help.

  • @ap297-hi1
    @ap297-hi1 2 หลายเดือนก่อน +1

    Hello how can i connect with you on linkedin? I have some questions related to competitive programming.

    • @topswe
      @topswe  2 หลายเดือนก่อน

      See my community posts for my LinkedIn!

  • @chiragparmar1964
    @chiragparmar1964 2 หลายเดือนก่อน

    please tell us your income per annum now as a SDE ? I'm intrested to know, we are intrested to know?

  • @khusharora1920
    @khusharora1920 2 หลายเดือนก่อน

    Im currently learning java previously i learnt python 3-4 months back So should i learn java and then revise python to do leetcode?

  • @omjagtap3432
    @omjagtap3432 2 หลายเดือนก่อน +1

    Sir in which way is leetcode beneficial in solving real world problems i am a begineer and i am not getting it for what purpose i am learning because some of the high paying wngineers i know they tell that leetvode isnt necessary .i am bit confused

    • @sharif47
      @sharif47 2 หลายเดือนก่อน +3

      I'm no expert on this, but from how I see this:
      High level companies like Google, Facebook started this. This is understandable since these guys want the best programmers and might often use these algorithms to implement new features instead of using existing packages. The reasons could be either security purposes or simply because there is no such package/library available for this.
      To give better example, Google Maps is probably using some sort of path finding algorithm. But for special case, they might need to modify parts of it to make it work as they intend, something that may not always be possible by using third-party libraries. And since they are the top in tech industry, they are not expected to depend on someone else to solve their problem.
      Now, this is probably the real part of the answer: Why do other companies want tech interview as well?
      Simply because they're following MANGA/FAANG companies and also because they're not really sure how else to do it (especially with the least effort from the hiring department).
      They could try take-home assignments. But if the assignment doesn't change, then people will specifically prepare for that problem and if it does change, then people will complain they're doing free labour (sometimes, they are).
      Also, if they do create unique problems for each candidate, they're wasting a lot of their time on candidate that they won't be hiring.
      So, from the hiring department, it makes more sense to do what MANGA does. There's already thousands of problems on Leetcode (they don't have to waste time on making up new problems), they can randomly pick a few and the problems will probably be unique enough per candidate. On top of that, they'll potentially find candidates who understand beyond basic programming.
      As a fresher, you are not expected to know about their tech stack, so this is probably what makes you better than the rest.
      Exceptions do exist though. If you happen to have good portfolio to show you actually know enough of the tech stack, there is a possibility that the company will ignore your competitive programming skill. Or maybe some other company will show interest in hiring you. But you'll need to show exceptional work to showcase yourself from other newbies.

    • @omjagtap3432
      @omjagtap3432 2 หลายเดือนก่อน

      @@sharif47 so without knowing the patterns in the question and without seeing the solutions how will I be able to approach the question.for that i have to see many solutions ?

    • @sharif47
      @sharif47 2 หลายเดือนก่อน

      @@omjagtap3432 that's the neat part, you don't. You pretend to never have seen this problem in your life and then proceed to pretend you're solving this problem for the first time.
      Theoretically, if you've solved enough problems, you would've seen the pattern and should be able to recognize the pattern.
      From my own interview experience, only Samsung R&D liked to give hardball questions (think really complicated graph based hard questions) but they gave about 3 hours for one question. Also, you can find them on the internet. But even trying to memorizing them gave me nightmares. Then again, Samsung is quite MANGA level.
      For other average companies, I would be asked to implement different data types (think stack, hashmap, linked list etc.) or problems like finding if a string has certain patterns, or pallindromes or at least problems that do not require you to use advanced algorithms. Maybe if you're good at understanding problem statements and have the ability to turn them into easier subproblems, you might end up with a solution within a given time. In short, other companies did not give me problems that would require research paper level knowledge to solve.
      But that's just my experience (which may vary on your location) and even I failed a lot of those interviews.

    • @sharif47
      @sharif47 2 หลายเดือนก่อน

      @@omjagtap3432 that's the neat part, you don't. You pretend to see it for the first time and then pretend to solve it for the first time then and there.
      More realistically, if you've solved enough problems, you'll likely be able to recognize the pattern in the questions and modify your solutions accordingly.
      From personal experience, average companies don't give you problems that require knowledge of algorithms from research papers. Ideally, if you can understand the problem statement and divide the problem into easier sub-problems, you won't have issue solving them.
      Then again, experience may vary depending on the location and/or company.
      Meanwhile, Samsung, which is a high level company, does give really hard questions requiring high level knowledge on data structure, dp, graph etc. You can look up their problems on the internet, they often repeat.

  • @Greedoid
    @Greedoid 2 หลายเดือนก่อน

    Do you have Codeforces account ??

  • @awalkingnosebleed
    @awalkingnosebleed 2 หลายเดือนก่อน

    when should you stop looking at solutions? isnt looking at solutions defeating the purpose of lc?

    • @fraserdab
      @fraserdab 2 หลายเดือนก่อน +3

      There's no harm in looking at solutions after atleast trying for 15-30 minutes with full concentration and ending up with no ideas. What's important is that you analyze the solution in such a way that you can make the insight next time

  • @ruslan2676
    @ruslan2676 28 วันที่ผ่านมา +1

    Just would like to clarify one part. Your advice is to look at the solution after 10 min of no new ideas. Got it. But when should I implement it without looking at the solution? Do you mean like read/watch the solution, code it yourself + try to solve the problem without hints in 1/2/3 days after? If that's the case do you think the problem can be considered truly "solved" or it's more like "memorized"?

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

      Ideally you read the solution without looking at the code. Reading the titles or hints can help. Basically you should learn the minimum information possible for you to code the solution, and then try to code it up yourself independently.

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

      @@ruslan2676 if you read the code it’s basically memorization because you’re not doing any of the hard work. Which I would argue is ok during the knowledge accumulation phase, since you just aren’t exposed yet to the type of ideas/ ways of thinking necessary to solve the problem.

    • @ruslan2676
      @ruslan2676 27 วันที่ผ่านมา

      @@topswethanks, that helps 👏

    • @ruslan2676
      @ruslan2676 27 วันที่ผ่านมา

      @@topswe what to do if I'm stuck on some problem that I can't solve by myself and even when memorizing code I can't solve it on the next day without looking up the solution's code? I'm 2 hours in on revisiting the explanation + trying to come up with the code myself and still I'm close but the problem isn't solved. I'm afraid that I'm wasting my time at this point

  • @FreeTrial0315
    @FreeTrial0315 2 หลายเดือนก่อน +5

    As developer i canot suggest anyone to got leetcpde because it a engineering you just solve questions.
    Let me example engineering keans you sve real problem or i know most of beginners used leetcode to improve the ligic but it jot happened, real world ligic leet code logic is another one .
    MY question.
    If yiu completed the most of the leetcode questions make a simple question create a drag and drop functions with connect nide using smoothly step line

    • @shazmimain8293
      @shazmimain8293 2 หลายเดือนก่อน +2

      are you typing with your feet?

    • @FreeTrial0315
      @FreeTrial0315 2 หลายเดือนก่อน

      @@shazmimain8293 sorry brother I mobile get bricked and now touch is not replaceable because it red magic devices when write something it automatically intercepted, manipulate the written comments and now this time I write with my pc so it write .

    • @shazmimain8293
      @shazmimain8293 2 หลายเดือนก่อน

      @@FreeTrial0315 understandable.

  • @glowiboi
    @glowiboi 2 หลายเดือนก่อน

    hey i see you deleted my old comment.
    when are you gonna start teaching "black box" algorithms, inputs, outputs, time space complexities, and leetcode examples.

  • @yashshukla1637
    @yashshukla1637 2 หลายเดือนก่อน

    TOPG TOPSWE