Leetcode - 112. Path Sum

🧠 Approach: Recursive DFS To determine if a path from root to leaf equals a target sum, we use depth-first traversal. At each node, we subtract the node’s value from the target sum and r...
0 Read More

838. Push Dominoes

838. Push Dominoes
838. Push DominoesDifficulty: MediumTopics: Two Pointers, String, Dynamic ProgrammingThere are n dominoes in a line, and we place each domino vertically upright. In the beginning, we simultaneously pu...
0 Read More