mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-06 07:51:41 +08:00
update
This commit is contained in:
@@ -155,7 +155,7 @@
|
||||
"__typename": "CodeSnippetNode"
|
||||
}
|
||||
],
|
||||
"stats": "{\"totalAccepted\": \"137.9K\", \"totalSubmission\": \"296.8K\", \"totalAcceptedRaw\": 137900, \"totalSubmissionRaw\": 296825, \"acRate\": \"46.5%\"}",
|
||||
"stats": "{\"totalAccepted\": \"137.9K\", \"totalSubmission\": \"296.9K\", \"totalAcceptedRaw\": 137915, \"totalSubmissionRaw\": 296858, \"acRate\": \"46.5%\"}",
|
||||
"hints": [
|
||||
"Build a graph of n nodes where nodes are the indices of the array and edges for node i are nodes i+1, i-1, j where arr[i] == arr[j].",
|
||||
"Start bfs from node 0 and keep distance. The answer is the distance when you reach node n-1."
|
||||
|
Reference in New Issue
Block a user