Binary Search

Search a sorted array by repeatedly dividing the search interval in half

Algorithmia Platform License · Internet Access · Calls Other Algorithms

Try the API

"Hello class BinarySearch {\n  def apply(input: String): String = {\n    \"Hello \" + input\n  }\n}\n"

Install & Use

Use

curl -X POST -d '"class BinarySearch {\n  def apply(input: String): String = {\n    \"Hello \" + input\n  }\n}\n"' -H 'Content-Type: application/json' -H 'Authorization: Simple YOUR_API_KEY' https://api.algorithmia.com/v1/algo/JamesBond007/BinarySearch/0.1.0