Transpiled version (2889L) is out of date.
svoid test_timSortIntArrayWithComparator(int n default 1000000) { print("Testing timSortIntArrayWithComparator with size " + n); int[] a = listToIntArray(shuffled(iotaZeroList(n))); print("Sorting"); timSortIntArrayWithComparator(a, (x, y) -> cmp(y,x)); print(takeFirst(10, wrapIntArrayAsList(a))); assertEquals(reversed(iotaZeroList(n)), wrapIntArrayAsList(a)); }
Began life as a copy of #1029414
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1029417 |
Snippet name: | test_timSortIntArrayWithComparator |
Eternal ID of this version: | #1029417/5 |
Text MD5: | b6aae8060f449e973effd44a506bbb45 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-08-05 18:32:46 |
Source code size: | 383 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 192 / 284 |
Version history: | 4 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |