package
0.0.0-20241209140624-9fce2a725d55
Repository: https://github.com/elven9/my-leetcode.git
Documentation: pkg.go.dev
# README
House Robber
Solution Idx | Time Complexity | Space Complexity | Comment |
---|---|---|---|
1 | Recursion | O(1) | Recursive implementation. Simple, but definitly TLE ... XD |
2 | O(n) | O(n) | DP Solution, typical thought process |
3 | O(n) | O(1) | DP solution, without memorize useless state |