1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-09-05 15:31:43 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee
This commit is contained in:
2023-12-09 19:57:46 +08:00
parent 9bc4722a45
commit 3770b44d1e
4792 changed files with 10889 additions and 10886 deletions

View File

@@ -161,7 +161,7 @@
"__typename": "CodeSnippetNode"
}
],
"stats": "{\"totalAccepted\": \"107.5K\", \"totalSubmission\": \"267.9K\", \"totalAcceptedRaw\": 107473, \"totalSubmissionRaw\": 267862, \"acRate\": \"40.1%\"}",
"stats": "{\"totalAccepted\": \"107.5K\", \"totalSubmission\": \"267.9K\", \"totalAcceptedRaw\": 107477, \"totalSubmissionRaw\": 267868, \"acRate\": \"40.1%\"}",
"hints": [
"During iteration, say I want to add the current course, currentTotalTime being total time of all courses taken till now, but adding the current course might exceed my deadline or it doesnt.</br></br>\r\n\r\n1. If it doesnt, then I have added one new course. Increment the currentTotalTime with duration of current course.",
"2. If it exceeds deadline, I can swap current course with current courses that has biggest duration.</br>\r\n* No harm done and I might have just reduced the currentTotalTime, right? </br>\r\n* What preprocessing do I need to do on my course processing order so that this swap is always legal?"