ivanseed / google-foobar-help

Guidance on how to tackle some of the foobar challenges.
174 stars 47 forks source link

Some more to add (don't remember the names though) #19

Closed wysisoft closed 3 years ago

wysisoft commented 6 years ago

I had one that would calculate the value at the coordinates of an arbitrarily large triangle of numbers like this

7 4 8 2 5 9 1 3 6 10

and they give you a coordinate like (3,2) and you need to answer 9.

theres a lot of different ways to solve, all pretty much revolving around series summing (the 4th number on the bottom row is 10 because its 4+3+2+1, etc). You can then use the diagonal run to get the coordinate value, based on the bottom row value.