Okay so, I wrote a solution and it passed all the test cases, but I get an error in the end saying:
Traceback:
in
in unique_in_order
TypeError: expected string or buffer
I'm not sure how to correct it since the test results indicate Time: 59ms Passed: 8 Failed: 0
Has anyone encountered this before?
random tests have been added
No random tests.
This comment is hidden because it contains spoiler information about the solution
According to https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date
Parsing of strings with Date.parse is strongly discouraged due to browser differences and inconsistencies.
It's better to use constructor Date("date") IMHO.
How can I take my voice back for Best Practice?
Help us help you. At the very least, mention what language you're using.
Closing for now. You can reopen with more information.
Seeing the same
Okay so, I wrote a solution and it passed all the test cases, but I get an error in the end saying:
Traceback:
in
in unique_in_order
TypeError: expected string or buffer
I'm not sure how to correct it since the test results indicate Time: 59ms Passed: 8 Failed: 0
Has anyone encountered this before?