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

8
LINES

< > BotCompany Repo | #1007270 // rectsMaxSize

JavaX fragment (include)

static Pt rectsMaxSize(L<Rect> rects) {
  int w = 0, h = 0;
  for (Rect r : rects) {
    w = max(w, r.w);
    h = max(h, r.h);
  }
  ret new Pt(w, h);
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1007270
Snippet name: rectsMaxSize
Eternal ID of this version: #1007270/1
Text MD5: ba76a93706e9348dd85680d92e0bd375
Author: stefan
Category: javax / maths
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-03-14 14:14:54
Source code size: 159 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 591 / 596
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1008957 - rectsMaxBottomRight