Sha256: a57c64524374c458b26a1f52886d22eb210098356f7abc6c3ec39520fbc49037

Contents?: true

Size: 304 Bytes

Versions: 133

Compression:

Stored size: 304 Bytes

Contents

class BinarySearch {

    List data

    // You may assume for this exercise that the input data is sorted in ascending order.
    BinarySearch(List data) {
        this.data = data
    }

    int indexOf(item) {
        throw new UnsupportedOperationException('indexOf method not implemented')
    }

}

Version data entries

133 entries across 133 versions & 1 rubygems

Version Path
trackler-2.2.1.58 tracks/groovy/exercises/binary-search/BinarySearch.groovy
trackler-2.2.1.57 tracks/groovy/exercises/binary-search/BinarySearch.groovy
trackler-2.2.1.56 tracks/groovy/exercises/binary-search/BinarySearch.groovy
trackler-2.2.1.55 tracks/groovy/exercises/binary-search/BinarySearch.groovy
trackler-2.2.1.54 tracks/groovy/exercises/binary-search/BinarySearch.groovy
trackler-2.2.1.53 tracks/groovy/exercises/binary-search/BinarySearch.groovy
trackler-2.2.1.52 tracks/groovy/exercises/binary-search/BinarySearch.groovy
trackler-2.2.1.51 tracks/groovy/exercises/binary-search/BinarySearch.groovy
trackler-2.2.1.50 tracks/groovy/exercises/binary-search/BinarySearch.groovy
trackler-2.2.1.49 tracks/groovy/exercises/binary-search/BinarySearch.groovy
trackler-2.2.1.48 tracks/groovy/exercises/binary-search/BinarySearch.groovy
trackler-2.2.1.47 tracks/groovy/exercises/binary-search/BinarySearch.groovy
trackler-2.2.1.46 tracks/groovy/exercises/binary-search/BinarySearch.groovy