Libraryless. Click here for Pure Java version (36L/1K).
static int[] sortIntArrayInPlaceDesc_crazyNegationAlgorithm(int[] a) { if (a == null) null; for (int i = 0; i < a.length; i++) a[i] = ~a[i]; Arrays.sort(a); for (int i = 0; i < a.length; i++) a[i] = ~a[i]; ret a; }
Began life as a copy of #1029069
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
| Snippet ID: | #1035037 |
| Snippet name: | sortIntArrayInPlaceDesc_crazyNegationAlgorithm |
| Eternal ID of this version: | #1035037/5 |
| Text MD5: | 93929367fc3bc1a77f94efeeab3b2a9e |
| Transpilation MD5: | 18937a13954aeaca81c6c5cdc2172826 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-03-25 20:50:14 |
| Source code size: | 240 bytes / 9 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 346 / 459 |
| Version history: | 4 change(s) |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1035039 - sortIntArrayInPlaceDesc |