Libraryless. Click here for Pure Java version (2676L/17K).
svoid test_intersectSortedIntArrays_ofs_optimized2() { Random random = repeatableRandomizer(); repeat 1000 { int[] a = randomSortedIntArray(10, random); int[] b = randomSortedIntArray(10, random); int ofs = random(2, random); print(asList(a) + " / " + asList(b) + " / " + ofs); assertEqualsVerbose( asList(intersectSortedIntArrays_ofs(a, b, ofs)), asList(intersectSortedIntArrays_ofs_optimized2(a, b, ofs))); } }
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: | 217 / 336 |
Version history: | 7 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1029047 - test_intersectMultipleSortedCollectionsI (OK) |