MCPcopy Create free account
hub / github.com/PinkyJie/leetcode-patterns / searchBitonicArray

Function searchBitonicArray

11_binary-search/0_search-bitonic-array.js:26–72  ·  view source on GitHub ↗

* * Problem: * Given a Bitonic array, find if a given 'key' is present in it. An array is considered * bitonic if it is monotonically increasing and then monotonically decreasing. * Monotonically increasing or decreasing means that for any index i in the array * `arr[i] != arr[i+1]`. Write a fu

(nums, key)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected