Libraryless. Click here for Pure Java version (155L/2K/4K).
!7 static int n = 1000000; sS a = repeat('a', n) + repeat('b', n); sS b = repeat('a', n+10) + repeat('b', n-10); p { for (int max = 0; max <= 20; max++) test(max); test(100); test(1000); test(10000); test(100000); test(1000000); test(10000000); test(100000000); } svoid test(int max) { long startTime = sysNow(); System.out.println("max " + max + " => " + leven_limited(a, b, max)); System.out.println((sysNow()-startTime) + " ms"); }
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: | 807 / 882 | 
| Version history: | 1 change(s) | 
| Referenced in: | [show references] |