Libraryless. Click here for Pure Java version (2676L/17K).
1 | svoid test_intersectSortedIntArrays_ofs_optimized2() { |
2 | Random random = repeatableRandomizer(); |
3 | repeat 1000 { |
4 | int[] a = randomSortedIntArray(10, random); |
5 | int[] b = randomSortedIntArray(10, random); |
6 | int ofs = random(2, random); |
7 | print(asList(a) + " / " + asList(b) + " / " + ofs); |
8 | assertEqualsVerbose( |
9 | asList(intersectSortedIntArrays_ofs(a, b, ofs)), |
10 | asList(intersectSortedIntArrays_ofs_optimized2(a, b, ofs))); |
11 | } |
12 | } |
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: | #1029033 |
Snippet name: | test_intersectSortedIntArrays_ofs_optimized2 |
Eternal ID of this version: | #1029033/8 |
Text MD5: | e05bfab14d883a771374879398ef1f6c |
Transpilation MD5: | 7a40f2ef383a552128fc046d62a958a2 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-07-17 02:16:45 |
Source code size: | 461 bytes / 12 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 218 / 338 |
Version history: | 7 change(s) |
Referenced in: | [show references] |