35
-
[LeetCode] 35. Search Insert PositionLeetCode 2021. 11. 26. 11:01
https://leetcode.com/problems/search-insert-position/ Search Insert Position - 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 Search Insert Position - Easy 간단한 이진탐색 문제다. 단, 추가조건은 target이 배열에 없을 경우엔 정렬된 상태에서 target이 어디에 추가되어야 하는지 구해야 한다. 이진탐색을 진행하면 mid m은 target의 index 또는 target과 가..