Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 74571

For challenges involving either three-dimensional graphics, three-dimensional geometry or spatial data structures in three dimensions (e.g. octrees).

3 votes

CGAC2022 Day 21: Present stack headache

Python3, 217 bytes: lambda c,p:max(max(f(c,[*i]))for i in P(p,len(p))) from itertools import* P=permutations def f(c,p,H=0,k=0): yield k if p: for w,l,h in P(p[0],3): if c[0]>=w>0<l<=c[1]and H+ …
Ajax1234's user avatar
  • 7,711
1 vote

CGAC2022 Day 22: Present stack headache, Part 2

Python3, 221 bytes: lambda c,p:max(max(f(c,[*i]))for i in P(p,len(p))) from itertools import* P=permutations def f(c,p,H=0,v=0): yield v if p: for w,l,h in P(p[0],3): if c[0]>=w>0<l<=c[1]and H+ …
Ajax1234's user avatar
  • 7,711
2 votes

Generate the vertices of a geodesic sphere

Python3, 421 bytes: def f(l,r=[]): if[]==l:yield r;return for i in l[0]:yield from f(l[1:],r+[i]) C=lambda n=0,b=[0,1,(1+5**.5)/2]:[]if n==3 else[*f([[[i,-i],[0]][i==0]for i in b[n:]+b[:n]])]+C(n+1) …
Ajax1234's user avatar
  • 7,711