After more testing, it seems that the first solution is wrong too. I am now working on the second one however.
After more testing, it seems that the first solution is wrong too. I am now working on the second one however.
Code - functions and small libraries I use
It’s 2014 and I still use printf() for debugging.
"Programs must be written for people to read, and only incidentally for machines to execute. " —Harold Abelson