Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
how 2 blue honda can counted twice in test 2?
puts "Another Static test ('blue honda' is counted twice):"
I cannot pass the random test, it's always wrong, other previous tests ok, should I pos my code?
What does this sentence mean? "the total number of unique rentals they have made". Should inventory_id be different? But this column wasn't mentioned in (data that is needed for the task). Some rental has more than one payment. Should we sum them?
It's not a bug. In that case the runner's name is Second Runner.
Is the second criterion actually enforced ? Or even enforceable ? My own solution does not explicitely take care of it, I'm not sure whether it's because PostgresSQL produces a stable sort as an implementation detail (since the SQL standard does not make such a guarantee) or whether it's a consequence of using
regexp_split_to_table()
This comment is hidden because it contains spoiler information about the solution
I am currently working on this kata on sunday, and I’m encountering some issues with the tests. The "results: expected" field appears blank in the sample test suite, as well as in the random tests within the full test suite. For the edge case test, there are two valid entries for sale_date with dates "2024-10-19" and "2024-10-20." However, in the sample tests, sale_date values fall between "2024-10-21" and "2024-10-30," and in the random tests, they range from "2024-10-21" to "2024-11-04."
(Edit: I tried it again with the exact same solution on the following day and it passed with flying colours, so there is something wrong with the tests on sunday)
The task is great! I would add a little note that a student can take the same course only once.
A week here is defined to start on Monday and end on Sunday. it has to be complete, i.e. 7 days. the current day of the week is irrelevant to this definition: all days share the same "last week"
My solution relies on the ISO 8601 week number and would return wrong results if:
1
to find the previous one, which would give0
, an invalid week number. (perhaps that one is impossible to catch)Could you clealry explain that only developer_id=1 must be checked,
or to drop records with develper_id = 2 from second random test?
I hadn't found this in the description,
so could not understand why my final test adds two extra records,
then I made ugly cheat hack to open solutions,
only to see - they all check developer_id=1 explicitly...
the total rentalal could be decimals , should we round it to nearest integer to determine if it is a prime number?
Yeah same here but wtv
it should be mentionned that the sequence always starts from
1
This comment has been deleted.
Loading more items...