Skip to end of metadata
Go to start of metadata

Motivation for this page was to add more list and regex example code. I had a hard time creating the regex which was acceptable to the groovy interpretor or which worked as I expected. I found examples of using static regex but very little variable based regex.

Secondly, I had seen this problem posed in multiple places and a solution in perl for the "lines2" which did not seem to work for "lines1".(my mistake, did not use enough points in the loops)

Problem: Count all triangles in the diagram.
Solution: select 3 points shared by 3 different lines


  • No labels