250x250
반응형
Notice
Recent Posts
Recent Comments
Link
목록sliding window (1)
N
(Leet Code JS)Maximum Erasure Value
https://leetcode.com/problems/maximum-erasure-value/ Maximum Erasure Value - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com Set과 Two pointer를 활용한 문제 풀이. sliding window 구조 형태로 동작. for문으로 nums를 순회한다. 순회할 시 left, right 변수를 이용한다. 두 변수는 sliding window의 범위를 조절하는 역할을 한다. 만약 obj에서 nums[ri..
Leet Code 알고리즘
2022. 6. 18. 15:03