We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1c3d64 commit 9a68630Copy full SHA for 9a68630
Easy/2053. Kth Distinct String in an Array/solution.php
@@ -10,7 +10,7 @@ public function kthDistinct($arr, $k)
10
{
11
$counts = array_count_values($arr);
12
13
- $result = array_filter($arr, callback: function ($value) use ($counts) {
+ $result = array_filter($arr, function ($value) use ($counts) {
14
return $counts[$value] === 1;
15
});
16
0 commit comments