Most probably no one thought of using Z for big numbers at the time (I definitely did not, because I did not even knew that Z exists), and this challenge already uses finite integers in many languages. Besides, maybe solving it for n up to 66 might be good eneough and would not differ much form solving it for arbitrary n? Or maybe you think it would be a good exercise to get familiar with Z?
there are empty matrices ([]) in the random tests. I personally think it's a valid edge case, but it's not aligned with the other languages which never generate them
You are correct, thank you, - I completely forgot about those. Alas, I don't get to code in OCaml as much as I'd like - I might actually attempt to translate some of my favorite katas into OCaml. :)
Most probably no one thought of using
Z
for big numbers at the time (I definitely did not, because I did not even knew thatZ
exists), and this challenge already uses finite integers in many languages. Besides, maybe solving it forn
up to 66 might be good eneough and would not differ much form solving it for arbitraryn
? Or maybe you think it would be a good exercise to get familiar withZ
?Why not just
Z
?(Yes I know this is ancient)
Approved some time ago
Approved
Approved
Approved
Approved
there are empty matrices (
[]
) in the random tests. I personally think it's a valid edge case, but it's not aligned with the other languages which never generate themI like your fork good fellow Glinator :)
You are correct, thank you, - I completely forgot about those. Alas, I don't get to code in OCaml as much as I'd like - I might actually attempt to translate some of my favorite katas into OCaml. :)
Forked for merge conflict and approved. Thanks!
thsi is a test, do not reply, ignor this
.
approved
.
Loading more items...