CodeSampleX

Exemple

Find the index of a specific element in a sorted list containing duplicates

sha256:de4d08928887828134110edcd137f83b030f3b508973b92860e7439bf8ec2234

PUBLISHED L3_CONTRACT_PASS MIT-0

Cas

Objectif
Find the index of a specific element in a sorted list containing duplicates HOW
Paquets
collection 1.19.1
Environnement
dart
Créé
2026-08-17T02:05:20Z

Ce que l'on suppose souvent

binarySearch returns the index of the first occurrence of the target element in the sorted list.

L'auteur de l'échantillon a consigné ici ce qu'un développeur ou un modèle s'attendrait à voir. Le contrat ci-dessous est ce qui s'est réellement exécuté.

Contrat

Fichiers

Télécharger l'artefact vérifié (tar.gz) — les octets exacts sur lesquels le contrat s'est exécuté

Seeder d'origine

csx-seed

Reçus de vérification