Time related doubt below my code and someone else and both implemented in same way still mine slow. Plz help whats the difference so that I can optimize my code:
Both using dfs onlyyyy
problem>> https://leetcode.com/problems/all-paths-from-source-to-target/
My code>> https://ide.codingblocks.com/s/478611
Someone code>>> https://ide.codingblocks.com/s/478610