Target Sum - Leetcode 494 - Python

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

КОМЕНТАРІ • 33

  • @NeetCodeIO
    @NeetCodeIO  20 годин тому +63

    Merry christmas 🎄
    this one goes out to all you who never quit

    • @adilansari-hq9ge
      @adilansari-hq9ge 19 годин тому +3

      Merry Christmas, Thank you for re-recording Bro!

    • @anantakesharipanda4085
      @anantakesharipanda4085 17 годин тому +1

      Thank you Navdeep for getting back again! Merry Christmas to you as well!

    • @hemanthhvv4296
      @hemanthhvv4296 17 годин тому +1

      merry christmas yo!, That recursive solution got me know a lot on hm Handling as well as DP is a new for me, Thanks!

  • @Code_Leveler
    @Code_Leveler 13 годин тому +16

    is that Pascal triangle 14:22 🙄

    • @NeetCodeIO
      @NeetCodeIO  13 годин тому +10

      Oh damn I didn't even notice

    • @rohitkumaram
      @rohitkumaram 12 годин тому +2

      so your conversation, is Genius to Genius, am I allowed,
      I also missed it

    • @SarweshParsewar
      @SarweshParsewar 11 годин тому +2

      yeah that is insane 😅

    • @homyakMilashka
      @homyakMilashka 7 годин тому +1

      was looking for this comment =)

    • @anantakesharipanda4085
      @anantakesharipanda4085 6 годин тому +1

      @@Code_Leveler i was going to say the same, for that particular set of examples, the DP solution forms a Pascal’s triangle.

  • @ashwinashok1998
    @ashwinashok1998 15 годин тому +5

    The Bottom Up DP solution is very well explained. Merry Christmas Navdeep!

  • @NeetCodeIO
    @NeetCodeIO  16 годин тому +1

    Here's the code in other languages: neetcode.io/solutions/target-sum

  • @johnniewalkerjohnniewalker2459
    @johnniewalkerjohnniewalker2459 35 хвилин тому

    Bottom-up solution was clever enough.Well explained!!

  • @neerajpillai461
    @neerajpillai461 16 годин тому +1

    Merry Christmas! Love ur dedication.

  • @svilenribarov3454
    @svilenribarov3454 19 хвилин тому

    Amazing solution and explanation as always!

  • @caiorenato1
    @caiorenato1 17 годин тому +1

    Merry Christmas! Thanks

  • @hongyihuang6856
    @hongyihuang6856 6 годин тому

    Only NeetCode explains things nicely and clearly. Thank you!

  • @Aaron-cp9tt
    @Aaron-cp9tt 19 годин тому

    Thank U, happy holidays!

  • @ahmedtremo
    @ahmedtremo 9 годин тому

    great explanation as usual, thanks

  • @razialghul
    @razialghul 18 годин тому

    thanks for the remake! do you have any other remakes?

  • @brandonthomas7698
    @brandonthomas7698 17 годин тому

    Thank you NeetCode. Merry Christmas. I wanted to get this months leetcode batch and some problems (like this and the hard problems of the month) have been quite a learning experience. Thanks for the help

  • @MP-ny3ep
    @MP-ny3ep 18 годин тому

    Beautifully explained Thank you

  • @an4220
    @an4220 13 годин тому

    Can't thank you enough!!! so crystal clear explanation !

  • @JamesBond-mq7pd
    @JamesBond-mq7pd 17 годин тому

    Thank you. A very clear explanation. I was able to write a DP solution on my own based on your explanation.

  • @yhbarve
    @yhbarve 18 годин тому

    Merry Christmas

  • @WeiJun-v8z
    @WeiJun-v8z 18 годин тому

    Thanks for your explanation

  • @jayjw1
    @jayjw1 4 години тому

    Hey Mr. Neet, I've been building a lot of intuition and just overall knowledge of DS&A and problem solving with them because of your amazing videos. Do you recommend that if I'm prepping for interviews long-term, that I go over each solution with a dry run? I actually enjoy just taking out a pencil and paper and going through example inputs with the solutions you came up with to see how they work. I've been doing DS&A for a year now, for a few months I was only able to do 1 solution a day though and not go through them entirely besides just reading the code and what the algorithm did. I just need some general advice on if there's anything you recommend I can do to improve faster/engrain this stuff in my mind? I'm decent right now, but I did flop an Amazon SDE interview role recently, and only had time to answer 1/2 questions asked. I'm not losing hope though, you'll see me at one of the top tech places soon!

  • @zhaojuntao-vm2zc
    @zhaojuntao-vm2zc 10 годин тому

    we can also transfer this question to a knapsack problem

  • @freecourseplatformenglish2829
    @freecourseplatformenglish2829 2 години тому

    Mind == blown

  • @rajsuriyang3427
    @rajsuriyang3427 12 годин тому

    Same variable names I used for memorization.😂

  • @heybeachMIN
    @heybeachMIN 2 години тому

    Idk i didn't understand second explanation, it was really hard for me.

    • @NeetCodeIO
      @NeetCodeIO  55 хвилин тому

      It's definitely difficult, takes some time to wrap your head around it.