added translation! (#27609)

* added translation!

* fix: changed c++ to cpp
pull/30013/head^2
Arturo Perez 2019-08-12 11:28:16 -07:00 committed by Randell Dawson
parent a836eb2ebe
commit 023bec41d4
1 changed files with 1 additions and 1 deletions

View File

@ -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; } \`\` \`