1 | static int shortArray_maxAbsValue(short[] c) { |
2 | int x = Int.MIN_VALUE; |
3 | if (c != null) for (short d : c) { |
4 | int a = abs((int) d); |
5 | if (a > x) x = a; |
6 | } |
7 | ret x; |
8 | } |
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1024595 |
Snippet name: | shortArray_maxAbsValue |
Eternal ID of this version: | #1024595/1 |
Text MD5: | 053297adc99017125784c7b7badb8c89 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-08-19 18:05:12 |
Source code size: | 178 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 235 / 264 |
Referenced in: | [show references] |