Evelyn Liuevelynsjourney.hashnode.dev·Mar 22, 2024Day 45 of LeetCodeDocumenting LeetCode solving. Q120 494. Target Sum Medium. DP class Solution: def findTargetSumWays(self, nums: List[int], target: int) -> int: dp = {} # (index, total) -> number of ways def backtrack(i, total): if i ...30+20 days of LeetCode leetcodeAdd a thoughtful commentNo comments yetBe the first to start the conversation.