I'd like to transcribe this little C program to Rust : http://fractal.math.unr.edu/~ejolson/pi/tatami/src/limited.c
Not for any particularly useful reason. It is so far the fastest solution to a certain problem involving the tiling of Tatami mats in a little coding challenge going on here: https://www.raspberrypi.org/forums/viewtopic.php?f=31&t=240287&start=1650#p1567313
The actual challenge is Problem number 256 of the Project Euler https://projecteuler.net/problem=256
My old Rust entry is lagging behind, something has to be done!
That code has some self contained functions that are easy enough to deal with.
But the rest of it is juggling a bunch of global variables and arrays in typical C fashion.
Would it be wise to put that data in a struct and have those functions as methods?
Or would it be better to keep them free standing and pass the arrays in by reference?
Or something else?