Search
⌘K
Get Premium
Leetcode 3379. Transformed Array
Given a circular integer array nums, build result where for each index i you move |nums[i]| steps from i (right if nums[i]>0, left if nums[i]<0, stay if 0) and set result[i] to the value at the position you land on. Return the resulting array.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.