Dev.toHashMap 기반 Time Complexity O(n) 최적화 구현Java Solution - LeetCode Problem 1 Two SumBackendbeginner2 분 소요2026년 6월 13일