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.180 tracks/groovy/exercises/binary-search/BinarySearch.groovy
trackler-2.2.1.179 tracks/groovy/exercises/binary-search/BinarySearch.groovy
trackler-2.2.1.178 tracks/groovy/exercises/binary-search/BinarySearch.groovy
trackler-2.2.1.177 tracks/groovy/exercises/binary-search/BinarySearch.groovy
trackler-2.2.1.176 tracks/groovy/exercises/binary-search/BinarySearch.groovy
trackler-2.2.1.175 tracks/groovy/exercises/binary-search/BinarySearch.groovy
trackler-2.2.1.174 tracks/groovy/exercises/binary-search/BinarySearch.groovy
trackler-2.2.1.173 tracks/groovy/exercises/binary-search/BinarySearch.groovy
trackler-2.2.1.172 tracks/groovy/exercises/binary-search/BinarySearch.groovy
trackler-2.2.1.171 tracks/groovy/exercises/binary-search/BinarySearch.groovy
trackler-2.2.1.170 tracks/groovy/exercises/binary-search/BinarySearch.groovy
trackler-2.2.1.169 tracks/groovy/exercises/binary-search/BinarySearch.groovy
trackler-2.2.1.167 tracks/groovy/exercises/binary-search/BinarySearch.groovy
trackler-2.2.1.166 tracks/groovy/exercises/binary-search/BinarySearch.groovy
trackler-2.2.1.165 tracks/groovy/exercises/binary-search/BinarySearch.groovy
trackler-2.2.1.164 tracks/groovy/exercises/binary-search/BinarySearch.groovy
trackler-2.2.1.163 tracks/groovy/exercises/binary-search/BinarySearch.groovy
trackler-2.2.1.162 tracks/groovy/exercises/binary-search/BinarySearch.groovy
trackler-2.2.1.161 tracks/groovy/exercises/binary-search/BinarySearch.groovy
trackler-2.2.1.160 tracks/groovy/exercises/binary-search/BinarySearch.groovy