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.159 tracks/groovy/exercises/binary-search/BinarySearch.groovy
trackler-2.2.1.158 tracks/groovy/exercises/binary-search/BinarySearch.groovy
trackler-2.2.1.157 tracks/groovy/exercises/binary-search/BinarySearch.groovy
trackler-2.2.1.156 tracks/groovy/exercises/binary-search/BinarySearch.groovy
trackler-2.2.1.155 tracks/groovy/exercises/binary-search/BinarySearch.groovy
trackler-2.2.1.154 tracks/groovy/exercises/binary-search/BinarySearch.groovy
trackler-2.2.1.153 tracks/groovy/exercises/binary-search/BinarySearch.groovy
trackler-2.2.1.152 tracks/groovy/exercises/binary-search/BinarySearch.groovy
trackler-2.2.1.151 tracks/groovy/exercises/binary-search/BinarySearch.groovy
trackler-2.2.1.150 tracks/groovy/exercises/binary-search/BinarySearch.groovy
trackler-2.2.1.149 tracks/groovy/exercises/binary-search/BinarySearch.groovy
trackler-2.2.1.148 tracks/groovy/exercises/binary-search/BinarySearch.groovy
trackler-2.2.1.147 tracks/groovy/exercises/binary-search/BinarySearch.groovy
trackler-2.2.1.146 tracks/groovy/exercises/binary-search/BinarySearch.groovy
trackler-2.2.1.145 tracks/groovy/exercises/binary-search/BinarySearch.groovy
trackler-2.2.1.144 tracks/groovy/exercises/binary-search/BinarySearch.groovy
trackler-2.2.1.143 tracks/groovy/exercises/binary-search/BinarySearch.groovy
trackler-2.2.1.142 tracks/groovy/exercises/binary-search/BinarySearch.groovy
trackler-2.2.1.141 tracks/groovy/exercises/binary-search/BinarySearch.groovy
trackler-2.2.1.140 tracks/groovy/exercises/binary-search/BinarySearch.groovy