샘플
Find the index of a specific element in a sorted list containing duplicates
sha256:de4d08928887828134110edcd137f83b030f3b508973b92860e7439bf8ec2234
PUBLISHED
L3_CONTRACT_PASS
MIT-0
케이스
- 목표
- Find the index of a specific element in a sorted list containing duplicates HOW
- 패키지
- collection 1.19.1
- 환경
- dart
- 생성일
- 2026-08-17T02:05:20Z
흔히 이렇게 알고 있다
binarySearch returns the index of the first occurrence of the target element in the sorted list.
이 샘플의 작성자가 여기서 개발자나 모델이 기대할 법한 내용으로 적어둔 것이다. 아래 계약이 실제로 실행된 것이다.
컨트랙트
- if (binarySearch(list, 2) != 3) throw 'binarySearch returns an arbitrary match (3) rather than the first occurrence (1)';
- if (lowerBound(list, 2) != 1) throw 'lowerBound returns the first occurrence (1)';
파일
- NOTES.md
- csx.json
- pubspec.lock
- pubspec.yaml
- test/contract.dart
검증된 아티팩트 내려받기 (tar.gz) — 컨트랙트가 실제로 실행된 바로 그 바이트
오리진 시더
검증 영수증
- dart 3 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · pub@1 · 2026-08-16 · ed25519:d91480838ac982c9