Libraryless. Click here for Pure Java version (2454L/16K).
1 | static int lengthOfEqualListPrefixesIC(LS l1, LS l2) { |
2 | int n = min(l(l1), l(l2)), i = 0; |
3 | for (; i < n; i++) |
4 | if (!eqic(l1.get(i), l2.get(i))) |
5 | break; |
6 | ret i; |
7 | } |
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: | #1028778 |
Snippet name: | lengthOfEqualListPrefixesIC |
Eternal ID of this version: | #1028778/5 |
Text MD5: | ef759f2ef1ab95560f2a5bf0ee78115e |
Transpilation MD5: | be63c725519cff0152701966d83bd841 |
Author: | stefan |
Category: | javax / linecomp |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-07-08 21:14:47 |
Source code size: | 178 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 177 / 260 |
Version history: | 4 change(s) |
Referenced in: | [show references] |