1 | static Rect biggestRect(L<Rect> l) { |
2 | new Best<Rect> best; |
3 | for (Rect r : l) |
4 | best.put(r, r.w*r.h); |
5 | ret best.get(); |
6 | } |
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, sawdedvomwva, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1006213 |
Snippet name: | biggestRect - return biggest rect from list |
Eternal ID of this version: | #1006213/1 |
Text MD5: | 265155c8c330f282f3f1ad4f506a0551 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-12-23 14:39:41 |
Source code size: | 129 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 530 / 570 |
Referenced in: | [show references] |