728x90 이진탐색1 [kotlin] leetcode - Search Insert Position 35. Search Insert Position : 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 이진탐색 활용 class Solution { fun searchInsert(nums: IntArray, target: Int): Int { var low = 0; var high = nums.lastIndex; while(lo.. 2022. 4. 27. 이전 1 다음 728x90 반응형