1 | static L<Int> unsortedIndexes(L l) { |
2 | new L<Int> indexes; |
3 | for (int i = 0; i < l(l)-1; i++) |
4 | if (cmp(l.get(i), l.get(i+1)) > 0) |
5 | indexes.add(i); |
6 | ret indexes; |
7 | } |
Began life as a copy of #1005381
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1005382 |
Snippet name: | unsortedIndexes |
Eternal ID of this version: | #1005382/1 |
Text MD5: | 4523e7d6fac7abff60dc0163c4577bab |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-11-10 17:38:58 |
Source code size: | 177 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 512 / 502 |
Referenced in: | [show references] |