my leetcode answers in java with psudo code and analysis