mirror of
https://github.com/prdlk/leetcode.git
synced 2026-11-02 21:22:43 +00:00
docs: restructure problem paths, change section display to groups, and improve documentation content
This commit is contained in:
1 parent
cd5f416939
commit
7c7019ec0c
119 files changed
+52
-26
No files matched your search
@@ -39,10 +39,12 @@ def get_counter(arr: list[int]) -> dict[int, int]:
|
||||
return counter
|
||||
```
|
||||
|
||||
::: tip[Python provides a built-in `collections.Counter` class]
|
||||
:::tip
|
||||
Python provides a built-in [`collections.Counter`](https://docs.python.org/3/library/collections.html#collections.Counter) class that does this for us.
|
||||
:::
|
||||
|
||||
```python
|
||||
from collections import Counter
|
||||
|
||||
fq = Counter(arr)
|
||||
```
|
||||
:::
|
||||
Reference in new issue
Block a user