Libraryless. Click here for Pure Java version (108L/1K).
1 | static int[] reverseIntArray(int[] a) { |
2 | int n = l(a); |
3 | *int[n] b; |
4 | for i to n: b[n-1-i] = a[i]; |
5 | ret b; |
6 | } |
Began life as a copy of #1006381
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1035038 |
Snippet name: | reverseIntArray |
Eternal ID of this version: | #1035038/1 |
Text MD5: | f3b1470aae4192e29a287e7e2f3eaeb1 |
Transpilation MD5: | bf1fd6e05658c37eda5520e53aa0104f |
Author: | stefan |
Category: | javax / maths |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-03-25 20:57:27 |
Source code size: | 115 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 130 / 194 |
Referenced in: | [show references] |