-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error with problem 100 (CLJS comparison of floats vs CLJ comparison of Ratio) #82
Comments
Can you be more specific, e.g. list your solution here, so we can actually reproduce this? |
sure, my solution was:
when I run locally:
they all return true. |
@bo-tato The reason is probably that We'll have to think what a proper solution for this website and problem number 100 is. |
interesting, and I guess the reason the solutions that use an infinite seq and return the first solution hang is without the ratio types they never find any solution that is exactly equal |
a similar thing in problem 108, in order to get my solution to pass I had to replace
it could be good to just add a simple note on those problems, saying that in JVM clojure it uses exact ratio types while CLJS is using floating point, to save beginners some confusion why their code works locally but not when they submit |
Interesting library in the context of this issue: https://github.com/microsoft/same-ish |
with problem 100 https://4clojure.oxal.org/#/problem/100 when I run my solution locally I get all tests passing but on the site only 2/5 pass
when I submit any of the solutions from the solutions archive they also only get 2/5 passing so I think something's wrong with the site's evalutation
The text was updated successfully, but these errors were encountered: