Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

7
LINES

< > BotCompany Repo | #1005382 // unsortedIndexes

JavaX fragment (include)

static L<Int> unsortedIndexes(L l) {
  new L<Int> indexes;
  for (int i = 0; i < l(l)-1; i++)
    if (cmp(l.get(i), l.get(i+1)) > 0)
      indexes.add(i);
  ret indexes;
}

Author comment

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: 451 / 445
Referenced in: [show references]