MCPcopy Create free account
hub / github.com/dongyi-kim/10weeks-codingtest / binarySearch

Method binarySearch

chapter06/problem_c/Main.java:16–27  ·  view source on GitHub ↗

(재귀함수 버전 구현체) arr[l] ~ arr[r] 사이에 target이 존재하는지 반환하는 함수 @param arr 오름차순으로 정렬된 배열 @param target 탐색하고자 하는 값 @param l 탐색범위의 왼쪽 끝 인덱스 @param r 탐색범위의 오른쪽 끝 인덱스 @return arr내에 target이 존재하면 true, 그렇지 않으면 false

(int[] arr, int target, int l, int r)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 4

mainMethod · 0.95
getPossibleTargetsMethod · 0.80
getPossibleTargetsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected