Libraryless. Click here for Pure Java version (2846L/18K).
svoid test_timSortIntArray(int n default 1000000) { print("Testing timSortIntArray with size " + n); int[] a = listToIntArray(shuffled(iotaZeroList(n))); timSortIntArray(a); print(takeFirst(10, wrapIntArrayAsList(a))); assertEquals(iotaZeroList(n), wrapIntArrayAsList(a)); }
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: | #1029414 |
Snippet name: | test_timSortIntArray (OK) |
Eternal ID of this version: | #1029414/2 |
Text MD5: | 44620f9a9bda6786500f14b6d4ee6c32 |
Transpilation MD5: | d0cb93fd887ee88951c2e0c3df3a7caa |
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:28:30 |
Source code size: | 290 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 197 / 292 |
Version history: | 1 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1029417 - test_timSortIntArrayWithComparator |