Check out the other videos on the recursion play list. They all use the same pattern. You can find a write up on the solution artice for leetcode 39 Combination Sum. It takes a minute to get your head around but once you do, you can easily solve many problems that use this pattern.
Thank you Andy, for your time and effort in sharing this with us. It is very helpful.
I am trying to solve this since yesterday. I paused at 0:31 to comment that you saying that it's pretty easy made me feel so bad hahaha
Thank you! Perfect explanation!
can you share the template code? thanks!
Check out the other videos on the recursion play list. They all use the same pattern. You can find a write up on the solution artice for leetcode 39 Combination Sum. It takes a minute to get your head around but once you do, you can easily solve many problems that use this pattern.
hello every vid after 46 has low volume without earphones