mirror of
https://github.com/halfrost/LeetCode-Go.git
synced 2025-07-05 00:25:22 +08:00
添加内容
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
# [457. Circular Array Loop](https://leetcode.com/problems/circular-array-loop/)
|
||||
|
||||
|
||||
## 题目:
|
||||
## 题目
|
||||
|
||||
You are given a **circular** array `nums` of positive and negative integers. If a number k at an index is positive, then move forward k steps. Conversely, if it's negative (-k), move backward k steps. Since the array is circular, you may assume that the last element's next element is the first element, and the first element's previous element is the last element.
|
||||
|
||||
|
Reference in New Issue
Block a user