Libraryless. Click here for Pure Java version (2846L/18K).
1 | svoid test_timSortIntArray(int n default 1000000) { |
2 | print("Testing timSortIntArray with size " + n); |
3 | int[] a = listToIntArray(shuffled(iotaZeroList(n))); |
4 | timSortIntArray(a); |
5 | print(takeFirst(10, wrapIntArrayAsList(a))); |
6 | assertEquals(iotaZeroList(n), wrapIntArrayAsList(a)); |
7 | } |
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: | 196 / 292 |
Version history: | 1 change(s) |
Referenced in: | [show references] |