Skip to content

Commit c84490d

Browse files
longsizhuogithub-actions[bot]
authored andcommitted
chore(docs): sync doc metadata [skip ci]
1 parent 9af32cd commit c84490d

File tree

2 files changed

+27
-13
lines changed

2 files changed

+27
-13
lines changed

app/docs/CommunityShare/Leetcode/80_translated.md

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,25 @@
11
---
22
title: Python beat98.40% collectionsofCounter method!
3-
date: '2024.01.01 0:00'
3+
date: "2024.01.01 0:00"
44
tags:
55
- - Python
66
- - solved
77
- answer
88
abbrlink: 73b5ce9c
9-
category:
9+
category: null
10+
docId: ryp6s59uwc10w2dywgs6f66h
1011
---
1112

12-
13-
14-
15-
16-
1713
Pyhton `collection` In the bag `Counter()` Be rightlist里出现of元素conduct计数,And the output is a dictionary。
1814
for example`nums=[1, 1, 1, 2, 2, 3]` ToCounter后of结果是`Counter({1: 3, 2: 2, 3: 1})`
15+
1916
1. So traverse a dictionary,when`value>3`of时候`value=2`,Can be greater than2indivualof元素计数become2indivual。
2017
1. So we will`Counter({1: 3, 2: 2, 3: 1})`become`Counter({1: 2, 2: 2, 3: 1})`后再Toelementsconductlist操作就可以得到改变后of列表了。
2118

2219
---
2320

2421
Due to the meaning of the question“Input the array「Quote」方式传递of”,So we willnumsJust fill in and fill in
2522

26-
2723
```python
2824
from collections import Counter # Imported package
2925
class Solution:
@@ -37,6 +33,7 @@ class Solution:
3733
nums.extend(list1) # Add the collection to the list
3834
return len(nums)
3935
```
36+
4037
Complexity analysis
4138

4239
time complexity:`O(n)`,in `n` 是数组of长度。We have a maximum of this array once。

generated/doc-contributors.json

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"repo": "InvolutionHell/involutionhell",
3-
"generatedAt": "2025-11-10T03:06:22.583Z",
3+
"generatedAt": "2025-11-11T03:04:30.448Z",
44
"docsDir": "app/docs",
5-
"totalDocs": 108,
5+
"totalDocs": 109,
66
"results": [
77
{
88
"docId": "ue27z7z95yzw3lhhfj7nit1c",
@@ -2052,16 +2052,33 @@
20522052
]
20532053
},
20542054
{
2055-
"docId": "qfvqmc1exp066falnsg97c5m",
2056-
"path": "app/docs/CommunityShare/Leetcode/剑指 Offer II 021. 删除链表的倒数第 n 个结点_translated.md",
2055+
"docId": "ryp6s59uwc10w2dywgs6f66h",
2056+
"path": "app/docs/CommunityShare/Leetcode/80_translated.md",
20572057
"contributorStats": {
20582058
"114939201": 1
20592059
},
20602060
"contributors": [
20612061
{
20622062
"githubId": "114939201",
20632063
"contributions": 1,
2064-
"lastContributedAt": "2025-11-10T03:00:27.000Z",
2064+
"lastContributedAt": "2025-11-11T03:00:03.000Z",
2065+
"login": "longsizhuo",
2066+
"avatarUrl": "https://avatars.githubusercontent.com/u/114939201?v=4",
2067+
"htmlUrl": "https://github.com/longsizhuo"
2068+
}
2069+
]
2070+
},
2071+
{
2072+
"docId": "qfvqmc1exp066falnsg97c5m",
2073+
"path": "app/docs/CommunityShare/Leetcode/剑指 Offer II 021. 删除链表的倒数第 n 个结点_translated.md",
2074+
"contributorStats": {
2075+
"114939201": 2
2076+
},
2077+
"contributors": [
2078+
{
2079+
"githubId": "114939201",
2080+
"contributions": 2,
2081+
"lastContributedAt": "2025-11-10T03:06:23.000Z",
20652082
"login": "longsizhuo",
20662083
"avatarUrl": "https://avatars.githubusercontent.com/u/114939201?v=4",
20672084
"htmlUrl": "https://github.com/longsizhuo"

0 commit comments

Comments
 (0)