Timeline for Get the indices of an array after sorting
Current License: CC BY-SA 3.0
8 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Sep 3, 2017 at 1:14 | history | edited | Jakob | CC BY-SA 3.0 | edited body |
| Aug 17, 2017 at 0:00 | history | edited | Jakob | CC BY-SA 3.0 | -5 bytes, reformat |
| Aug 16, 2017 at 18:23 | comment | added | Nevay | You don't need j: l->{Integer o[]=l.clone(),s[]=l.clone(),i=0;for(Arrays.sort(s);i<l.length;l[o[i]=Arrays.asList(l).indexOf(s[i++])]=0);return o;} (19+128 bytes). | |
| Aug 1, 2017 at 14:03 | history | edited | Jakob | CC BY-SA 3.0 | change wording |
| Aug 1, 2017 at 4:52 | history | edited | Jakob | CC BY-SA 3.0 | save bytes: initialize `o` to clone of `l`, inline input length, reorder `for` loop, move sorting into `for` |
| Aug 1, 2017 at 4:26 | history | edited | Jakob | CC BY-SA 3.0 | added 98 characters in body |
| Aug 1, 2017 at 4:14 | history | edited | Jakob | CC BY-SA 3.0 | added 194 characters in body |
| Aug 1, 2017 at 3:01 | history | answered | Jakob | CC BY-SA 3.0 |