1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-09-07 08:21:41 +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

@@ -46,7 +46,7 @@
],
"companyTagStats": null,
"codeSnippets": null,
"stats": "{\"totalAccepted\": \"170K\", \"totalSubmission\": \"316.6K\", \"totalAcceptedRaw\": 170013, \"totalSubmissionRaw\": 316560, \"acRate\": \"53.7%\"}",
"stats": "{\"totalAccepted\": \"170K\", \"totalSubmission\": \"316.6K\", \"totalAcceptedRaw\": 170028, \"totalSubmissionRaw\": 316579, \"acRate\": \"53.7%\"}",
"hints": [
"1. (Binary Search) For each row do a binary search to find the leftmost one on that row and update the answer.",
"2. (Optimal Approach) Imagine there is a pointer p(x, y) starting from top right corner. p can only move left or down. If the value at p is 0, move down. If the value at p is 1, move left. Try to figure out the correctness and time complexity of this algorithm."