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

8
LINES

< > BotCompany Repo | #1007270 // rectsMaxSize

JavaX fragment (include)

1  
static Pt rectsMaxSize(L<Rect> rects) {
2  
  int w = 0, h = 0;
3  
  for (Rect r : rects) {
4  
    w = max(w, r.w);
5  
    h = max(h, r.h);
6  
  }
7  
  ret new Pt(w, h);
8  
}

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: 590 / 596
Referenced in: [show references]