Skip to content

Commit 35c5376

Browse files
committed
cpplint issues fixed in sorting folder
1 parent 01b69fc commit 35c5376

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

sorting/radix_sort.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,4 @@ int main(int argc, char const* argv[]) {
5555
radixsort(a, n);
5656
print(a, n);
5757
return 0;
58-
}
58+
}

sorting/slow_sort.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
// while being slow, must still all the time be working towards a result.
1010

1111
#include <iostream>
12-
using namespace std;
1312

1413
void SlowSort(int a[], int i, int j) {
1514
if (i >= j) return;
@@ -30,26 +29,27 @@ void SlowSort(int a[], int i, int j) {
3029

3130
int main() {
3231
int size;
33-
cout << "\nEnter the number of elements : ";
32+
std::cout << "\nEnter the number of elements : ";
3433

35-
cin >> size;
34+
std::cin >> size;
3635

3736
int *arr = new int[size];
3837

39-
cout << "\nEnter the unsorted elements : ";
38+
std::cout << "\nEnter the unsorted elements : ";
4039

4140
for (int i = 0; i < size; ++i) {
42-
cout << "\n";
43-
cin >> arr[i];
41+
std::cout << "\n";
42+
std::cin >> arr[i];
4443
}
4544

4645
SlowSort(arr, 0, size);
4746

48-
cout << "Sorted array\n";
47+
std::cout << "Sorted array\n";
4948

5049
for (int i = 0; i < size; ++i) {
51-
cout << arr[i] << " ";
50+
std::cout << arr[i] << " ";
5251
}
52+
5353
delete[] arr;
5454
return 0;
5555
}

0 commit comments

Comments
 (0)