Hm... The first simple tests run quickly. And then everything freezes, followed by a timeout. Is there something wrong with the tests?..
The behavior of the code in case of exceptions is completely not described. The task is a puzzle. And a waste of time.
The one from w3schools is for MySQL, you use PostgreSQL here. Look at PostgreSQL docs and you'll find it there.
As a solution of this kata? Because truncating and rounding are two different things. If you mean in your code, the error message says this:
HINT: No function matches the given name and argument types. You might need to add explicit type casts.
So you could try using some casting, but it won't work. You better try another function.
I can't understand why the ROUND function doesn't work? :(
The task is simple, but the logic of the code is hidden in an extremely unsuccessful presentation of special rules.
Thanks.
It can't be removed, but you also do not need to remove it. Just leave it as it is, it does not hurt anything.
How can I remove an incorrect solution made due to imperfections in random tests?
Hmmm... Thanks.
You used .strip, there's "str" there.
.strip
I solved the problem according to all the conditions. What does this inscription mean: Imagine using str in your solution: 'str' should equal False? All tests have been passed. And I didn't use STR!
I don't understand what could be the matter. Some random tests fail. Easy code... Python.
let me know if you need help to investigate it
Edit: python tests are ok, looks like your solution is bad:
' acdeghlmnqrvyz' should equal 'acdeghlmnqrvyz'
You return empty spaces, this is the problem, and the empty space disappears when you sort your result
Loading collection data...
Hm... The first simple tests run quickly. And then everything freezes, followed by a timeout. Is there something wrong with the tests?..
The behavior of the code in case of exceptions is completely not described. The task is a puzzle. And a waste of time.
The one from w3schools is for MySQL, you use PostgreSQL here. Look at PostgreSQL docs and you'll find it there.
As a solution of this kata? Because truncating and rounding are two different things. If you mean in your code, the error message says this:
So you could try using some casting, but it won't work. You better try another function.
I can't understand why the ROUND function doesn't work? :(
The task is simple, but the logic of the code is hidden in an extremely unsuccessful presentation of special rules.
Thanks.
It can't be removed, but you also do not need to remove it. Just leave it as it is, it does not hurt anything.
How can I remove an incorrect solution made due to imperfections in random tests?
Hmmm... Thanks.
You used
.strip
, there's "str" there.I solved the problem according to all the conditions. What does this inscription mean: Imagine using str in your solution: 'str' should equal False? All tests have been passed. And I didn't use STR!
I don't understand what could be the matter. Some random tests fail. Easy code... Python.
let me know if you need help to investigate it
Edit: python tests are ok, looks like your solution is bad:
You return empty spaces, this is the problem, and the empty space disappears when you sort your result
Loading more items...