Transpiled version (2889L) is out of date.
1 | svoid test_timSortIntArrayWithComparator(int n default 1000000) { |
2 | print("Testing timSortIntArrayWithComparator with size " + n); |
3 | int[] a = listToIntArray(shuffled(iotaZeroList(n))); |
4 | print("Sorting"); |
5 | timSortIntArrayWithComparator(a, (x, y) -> cmp(y,x)); |
6 | print(takeFirst(10, wrapIntArrayAsList(a))); |
7 | assertEquals(reversed(iotaZeroList(n)), wrapIntArrayAsList(a)); |
8 | } |
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: | 197 / 291 |
Version history: | 4 change(s) |
Referenced in: | [show references] |