Skip to content

Commit 9a68630

Browse files
committed
2053
1 parent f1c3d64 commit 9a68630

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Easy/2053. Kth Distinct String in an Array/solution.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public function kthDistinct($arr, $k)
1010
{
1111
$counts = array_count_values($arr);
1212

13-
$result = array_filter($arr, callback: function ($value) use ($counts) {
13+
$result = array_filter($arr, function ($value) use ($counts) {
1414
return $counts[$value] === 1;
1515
});
1616

0 commit comments

Comments
 (0)