eolymp
bolt
Try our new interface for solving problems
Problems

Polygonal chain - 2

published at 3/22/23, 9:41:11 pm

Pretty simple problem with high complexity.

I'll explain how I solved it. Answer is symmetrical regarding x, y, diagonal -> calculate result only for that part. I have recursive function that do one step, with this function I calculate how many ways it reaches particular point with minimum number of steps.