Actually the latter case can not be logically resolved, as the number of triangles not only depends on the linkage, but also the geo-location of each point (things like what if three points are located on one straight line etc.)
In the latter case, the question needs to be changed to something like "what is the maximum number of triangles can be formed" or something similar.
In reply to Re^2: How many triangles does your perl script "see"?
by pg
in thread How many triangles does your perl script "see"?
by Skeeve
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |