Sort 7 Discussions, By:
Please Login in order to post a comment
When I submit my solution, test cases 4 & 7 fail with a "runtime" error. However, when I download those test cases and run them either locally or as "custom input" online, I get no error, and I do get the expected result.
Any idea what the problem might be?
Same issue here, Driving me crazy...
My submission passes all of the given test cases when run against custom input, but fails test cases #3, #4, and #7 when submitted for scoring.
Any ideas what might be going wrong?
Same problem here
Thanks for this nice task.
I used File comparison tool of windows to compare my output with the "Expected Output", no difference found, for test case 3,4,7. Someone please take a look, I spent an unhealthy amount of time in this problem...and this kind of hurts....:(
This happens to me once and was an extra space at the end of the line. I will try this challenge soon and let you know. Have you inspected the bytecode result? Pherhaps an extra blank space at the end of line or the terminator chr(10)+chr(13)?
fc, that windows tool, compares byte by byte...
In test case 3,4 and 7...my local machine gives exact same output as in "Expected Output"...what's going wrong?
Do I need to read input from a file or STDIN. If STDIN, how to read till end of file in clojure?
You should read from stdin, but if clojure doesn't support reading multiple lines from stdin at once, read from stdin until there aren't any more lines and then join them with '\n'. That should get you the "program" you need to parse.
Input will be a file?
I mean I need to use file i/o machanism? if so, which will be the valid format?
No more comments