added translation! (#27609)
* added translation! * fix: changed c++ to cpp
This commit is contained in:
committed by
Randell Dawson
parent
a836eb2ebe
commit
023bec41d4
@ -257,7 +257,7 @@ volver a mediados
|
||||
|
||||
} devuelve -1; }
|
||||
```
|
||||
Iterative approach!
|
||||
¡Enfoque iterativo!
|
||||
```
|
||||
|
||||
C ++ - enfoque iterativo int binarySearch (int arr \[\], int start, int end, int x) { while (inicio <= fin) { int mid = start + (end - start) / 2; if (arr \[mid\] == x) volver a mediados if (arr \[mid\] <x) inicio = medio + 1; más end = mid - 1; } devuelve -1; } \`\` \`
|
||||
|
Reference in New Issue
Block a user