1 | static int lengthOfLongestLine(S s) { |
2 | int w = 0; |
3 | for (S line : toLines(s)) |
4 | w = max(w, l(line)); |
5 | ret w; |
6 | } |
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: | 518 / 535 |
Referenced in: | [show references] |