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
we think same xd..... simplicity is best
if you're working people who can't parse this code, then your project is a non starter anyway. This is basic stuff. I like to write these out myself but a list expression is just as easy to read.
This comment is hidden because it contains spoiler information about the solution
tu prueba esta mal, estás pasando
([1, 2, 3], [3, 4, 5])
(un tuple con dos listas) a la función. La función está duplicando cada elemento del tuple (cada lista) Por eso lo que te salió fue cada lista duplicada ([1, 2, 3] * 2 = [1, 2, 3, 1, 2, 3]
)But this code will produce an incorrect answer to arr = [1,1,1]. Or do I understand something wrong?
it's very good
welcome to the ternary operator club!! clean code at its finest!! :)
.
Let's not give anyone any stupid ideas, please.
This comment has been deleted.
I'm so happy that my solution is the same! Thank you :)
This comment is hidden because it contains spoiler information about the solution
same
Actually good one liner! Mine is kinda similar but a bit longer)
Loading more items...