[99클럽] 99클럽 코테 스터디 22일차 TIL - 이분탐색 (Binary Search)
·
코딩테스트 연습/99클럽
오늘의 문제LeetCode - Search Insert Position (출처 하단 표기) 문제Given a sorted array of distinct integers and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order.You must write an algorithm with O(log n) runtime complexity. 제한사항1 -10 ⁴ ⁴nums contains distinct values sorted in ascending order.-10 ⁴ ⁴입출력 예numstargetreturn[1, 3, 5,..