Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

7
LINES

< > BotCompany Repo | #1028778 // lengthOfEqualListPrefixesIC

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (2454L/16K).

static int lengthOfEqualListPrefixesIC(LS l1, LS l2) {
  int n = min(l(l1), l(l2)), i = 0;
  for (; i < n; i++)
    if (!eqic(l1.get(i), l2.get(i)))
      break;
  ret i;
}

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: 119 / 182
Version history: 4 change(s)
Referenced in: [show references]