Skip to content

Commit 458bbf0

Browse files
longsizhuogithub-actions[bot]
authored andcommitted
chore(docs): sync doc metadata [skip ci]
1 parent 2485c22 commit 458bbf0

File tree

2 files changed

+26
-7
lines changed

2 files changed

+26
-7
lines changed

app/docs/CommunityShare/Leetcode/2335. 装满杯子需要的最短总时长_translated.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,25 @@
11
---
22
title: 2335. The shortest total time to be filled with a cup One question daily
3-
date: '2024.01.01 0:00'
3+
date: "2024.01.01 0:00"
44
tags:
55
- - Python
66
- - answer
77
- - dp
88
- - One question daily
99
- - golang
1010
abbrlink: 4400daa1
11+
docId: hiqhki2z4v6oy0jstrcs7im0
1112
---
12-
# topic:
1313

14+
# topic:
1415

1516
[2335. The shortest total time to be filled with a cup.md](https://leetcode.cn/problems/minimum-amount-of-time-to-fill-cups/description/)
1617

1718
# Thought:
1819

1920
1. This question is very simple,但是我好像没用贪心的Thought。Look at the second test case and find it found,In fact, the minimum number of seconds is to avoid a certain number as much as possible0。
2021
So keep sorting,Always operate the two largest numbers。This sending can also be used for DoriamountCase,But because of sorting,I don't know if it can be used for a large number。
21-
Look atylbBig,和我一样但是Big细节处理得很好,Two fewer judgments than me,Then it seems that the classification discussion method below may be a solution to the difficult situation。
22+
Look atylbBig,和我一样但是Big细节处理得很好,Two fewer judgments than me,Then it seems that the classification discussion method below may be a solution to the difficult situation。
2223
2. mathematical method?Sort the number of drinks from small to large,Set the quantity x,y,z。Our goal is to match the different drinks as much as possible。
2324
like$x+y<=z$,The answer isz。like反之,Then set$t=(x+y-z)$,t是偶数The answer is
2425
$ \frac{t−1}{2} +z$Plus one
@@ -41,6 +42,7 @@ class Solution:
4142
amount.sort()
4243
return count
4344
```
45+
4446
```go
4547
import "sort"
4648

@@ -56,4 +58,4 @@ func fillCups(amount []int) int {
5658
}
5759
return ans
5860
}
59-
```
61+
```

generated/doc-contributors.json

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"repo": "InvolutionHell/involutionhell",
3-
"generatedAt": "2025-11-28T03:06:17.491Z",
3+
"generatedAt": "2025-11-29T03:05:48.113Z",
44
"docsDir": "app/docs",
5-
"totalDocs": 126,
5+
"totalDocs": 127,
66
"results": [
77
{
88
"docId": "ue27z7z95yzw3lhhfj7nit1c",
@@ -2207,14 +2207,31 @@
22072207
{
22082208
"docId": "mc2rjsq7syibclikyhomsbft",
22092209
"path": "app/docs/CommunityShare/Leetcode/2309兼具大小写的最好英文字母_translated.md",
2210+
"contributorStats": {
2211+
"114939201": 2
2212+
},
2213+
"contributors": [
2214+
{
2215+
"githubId": "114939201",
2216+
"contributions": 2,
2217+
"lastContributedAt": "2025-11-28T03:06:18.000Z",
2218+
"login": "longsizhuo",
2219+
"avatarUrl": "https://avatars.githubusercontent.com/u/114939201?v=4",
2220+
"htmlUrl": "https://github.com/longsizhuo"
2221+
}
2222+
]
2223+
},
2224+
{
2225+
"docId": "hiqhki2z4v6oy0jstrcs7im0",
2226+
"path": "app/docs/CommunityShare/Leetcode/2335. 装满杯子需要的最短总时长_translated.md",
22102227
"contributorStats": {
22112228
"114939201": 1
22122229
},
22132230
"contributors": [
22142231
{
22152232
"githubId": "114939201",
22162233
"contributions": 1,
2217-
"lastContributedAt": "2025-11-28T03:00:11.000Z",
2234+
"lastContributedAt": "2025-11-29T03:00:32.000Z",
22182235
"login": "longsizhuo",
22192236
"avatarUrl": "https://avatars.githubusercontent.com/u/114939201?v=4",
22202237
"htmlUrl": "https://github.com/longsizhuo"

0 commit comments

Comments
 (0)