1 | static int lCommonPrefix(S a, S b) { |
2 | int i = 0, n = Math.min(l(a), l(b)); |
3 | while (i < n && a.charAt(i) == b.charAt(i)) |
4 | ++i; |
5 | ret i; |
6 | } |
Began life as a copy of #2000587
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1004030 |
Snippet name: | lCommonPrefix |
Eternal ID of this version: | #1004030/4 |
Text MD5: | c28377a46cfa0ba9e1cf70ee603fb3a2 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-11-12 10:52:17 |
Source code size: | 148 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 553 / 613 |
Version history: | 3 change(s) |
Referenced in: | [show references] |