More general solution
Runtime: 220 ms
Memory Usage: 44.1 MB
https://leetcode.com/submissions/detail/322641913/
More optimized to this problem solution
Using the fact that all items are below 100
More general solution
Runtime: 220 ms
Memory Usage: 44.1 MB
https://leetcode.com/submissions/detail/322641913/
More optimized to this problem solution
Using the fact that all items are below 100