You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 2631-group-by/README.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
<h2><ahref="https://leetcode.com/problems/group-by/">2631. Group By</a></h2><h3>Medium</h3><hr><div><p>Write code that enhances all arrays such that you can call the <code>array.groupBy(fn)</code> method on any array and it will return a <strong>grouped</strong> version of the array.</p>
1
+
<h2><ahref="https://leetcode.com/problems/group-by/">2631. Group By</a></h2><imgsrc="https://img.shields.io/badge/Medium-FECC00"alt="Medium" /><hr><div><p>Write code that enhances all arrays such that you can call the <code>array.groupBy(fn)</code> method on any array and it will return a <strong>grouped</strong> version of the array.</p>
2
2
3
3
<p>A <strong>grouped</strong> array is an object where each key is the output of <code>fn(arr[i])</code> and each value is an array containing all items in the original array with that key.</p>
0 commit comments