Skip to content

Commit 9f7292d

Browse files
authored
Merge pull request #126 from anamarijapapic/fix/quicksort-empty-input-validation
[Sorting: QuickSort] Fix empty input validation.
2 parents a65714c + 6eea66c commit 9f7292d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sorting/QuickSort.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
function quickSort(array $input)
1111
{
1212
// Return nothing if input is empty
13-
if (!empty($input)) {
13+
if (empty($input)) {
1414
return [];
1515
}
1616

0 commit comments

Comments
 (0)