Libraryless. Click here for Pure Java version (155L/2K/4K).
1 | !7 |
2 | |
3 | static int n = 1000000; |
4 | sS a = repeat('a', n) + repeat('b', n); |
5 | sS b = repeat('a', n+10) + repeat('b', n-10); |
6 | |
7 | p { |
8 | for (int max = 0; max <= 20; max++) |
9 | test(max); |
10 | test(100); |
11 | test(1000); |
12 | test(10000); |
13 | test(100000); |
14 | test(1000000); |
15 | test(10000000); |
16 | test(100000000); |
17 | } |
18 | |
19 | svoid test(int max) { |
20 | long startTime = sysNow(); |
21 | System.out.println("max " + max + " => " + leven_limited(a, b, max)); |
22 | System.out.println((sysNow()-startTime) + " ms"); |
23 | } |
Began life as a copy of #1007598
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1007735 |
Snippet name: | Fixed "VM Breaker" |
Eternal ID of this version: | #1007735/2 |
Text MD5: | 028e8041783e6ec9d5e02bc6074e9aa9 |
Transpilation MD5: | ef72e109244550d0173407538944e9fc |
Author: | stefan |
Category: | javax / text |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-04-03 05:09:55 |
Source code size: | 487 bytes / 23 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 584 / 624 |
Version history: | 1 change(s) |
Referenced in: | [show references] |