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.
This comment is hidden because it contains spoiler information about the solution
I think this is not a good practice because the strings.Title() function is deprecated and does not have a future. There are other ways of achieving this, such as using Unicode to avoid reliance on deprecated functions. Just a point of view.
This is so refreshing coming from Javascript.
Looking back, I can't say why the code was accepted at the time. I tried this code today, now the code is too slow. maybe the tests were changed.
How could you surpass the timeout?
U just is Jedi of Python code @_@
This comment is hidden because it contains spoiler information about the solution
Thanks, now I understand.
How does that work?
intersting way of variables naming , very visual!
generate_series
looks like a table name but it is not the name of a table.generate_series
is a PostgreSQL function. See the free PostgreSQL manual section 9.25. Set Returning FunctionsIn this case the call
generate_series(1,$1)
returns a table with one column and the rows 1, 2, 3 ... up to the value $1.The column as named i with
AS i
. The field i is used inside theSELECT
section to create the values as defined in the kata.I am new to pattersn type questions in SQL. Can you please explain me the FROM part in this query?
I assume the table name generate_series is not given in the question. How does (1, $1) work here?
Thanks in advance.
I had the same message. The cause was a NULL value in one row. A string is required in each row. (In the output, you can't see the difference between an empty string and a NULL value.)
This comment is hidden because it contains spoiler information about the solution
And thank you for the kind words about katas! Will try to create some more, though it is more and more difficult to find fresh ideas :-) Cheers
Loading more items...