Skip to content

Commit

Permalink
1920
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangshanmeta committed Jan 8, 2025
1 parent fccb5e1 commit 7d65bf8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/1920.build-array-from-permutation.2048/solution.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
class Solution {
public int[] buildArray(int[] nums) {
int[] result = new int[nums.length];
for(int i=0;i<nums.length;i++){
result[i] = nums[nums[i]];
}
return result;
}
}

0 comments on commit 7d65bf8

Please sign in to comment.