fix: replace c++ with cpp for language postfix
This commit is contained in:
committed by
Kristofer Koishigawa
parent
7d097e62ac
commit
22f52296bc
@@ -174,7 +174,7 @@ int binarySearch(int a[], int l, int r, int x) {
|
||||
|
||||
### Implementación C / C ++
|
||||
|
||||
```C++
|
||||
```cpp
|
||||
int binary_search(int arr[], int l, int r, int target)
|
||||
{
|
||||
if (r >= l)
|
||||
@@ -208,7 +208,7 @@ def binary_search(arr, l, r, target):
|
||||
|
||||
### Ejemplo en C ++
|
||||
|
||||
```c++
|
||||
```cpp
|
||||
// Binary Search using iteration
|
||||
int binary_search(int arr[], int beg, int end, int num)
|
||||
{
|
||||
@@ -225,7 +225,7 @@ def binary_search(arr, l, r, target):
|
||||
}
|
||||
```
|
||||
|
||||
```c++
|
||||
```cpp
|
||||
// Binary Search using recursion
|
||||
int binary_search(int arr[], int beg, int end, int num)
|
||||
{
|
||||
|
Reference in New Issue
Block a user