I wrote a program that works fine in my computer but when I run the tests on Exercism, it doesn’t pass any of the true cases and I have no idea why.
What could be making this happen?
Could it be because the true cases need more computation time and the program is stopping assuming false as the return value?
The problem was I was using arrays and I was recompiling the program locally every time, so the arrays were reset.
But in Exercism it kept using the same array and pushing elements into it on every test, so it wasn’t being used as I was using it.
Thanks.