1 | // TODO: optimize |
2 | static bool anyRectsOverlap(L<Rect> l) {
|
3 | for (int i = 0; i < l(l); i++) {
|
4 | Rect a = l.get(i); |
5 | for (int j = i+1; j < l(l); j++) |
6 | if (rectsOverlap(a, l.get(j))) |
7 | true; |
8 | } |
9 | false; |
10 | } |
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: | #1009153 |
| Snippet name: | anyRectsOverlap |
| Eternal ID of this version: | #1009153/3 |
| Text MD5: | 81c9db0ea66e066f27617c3fb0442e54 |
| Author: | stefan |
| Category: | javax / maths |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-07-06 01:23:17 |
| Source code size: | 228 bytes / 10 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 753 / 816 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |