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

6
LINES

< > BotCompany Repo | #1004884 // lengthOfLongestLine

JavaX fragment (include)

static int lengthOfLongestLine(S s) {
  int w = 0;
  for (S line : toLines(s))
    w = max(w, l(line));
  ret w;
}

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: #1004884
Snippet name: lengthOfLongestLine
Eternal ID of this version: #1004884/1
Text MD5: 8bb1f7a4be777cee97f65039976a0855
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-09-12 19:29:33
Source code size: 119 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 464 / 476
Referenced in: [show references]