Even though the problem specifies that the inputs are integer arrays, it's better practice to create a sentinel that you can filter out instead of using None, as the caller may want to preserve any Nones in their inputs.
None
>>> compound_array([3,4,5],[None,None]) [3,4,5] # expected [3,None,4,None,5]
lol()
lol
Same here! I'm used to Python and just finished a Java crash course. Went straight here so I could learn all the different methods I could use.
Lol very true
This comment is hidden because it contains spoiler information about the solution
We essentialy have the same logic but I love how your's is easier to read.
Nice kata. Smirked once I've realized I was focusing too much on the unnecessary part.
we have the same solution lmao
Oh, very well thought!
Came to say that, hyper clever really.
Loading collection data...
Even though the problem specifies that the inputs are integer arrays, it's better practice to create a sentinel that you can filter out instead of using
None
, as the caller may want to preserve anyNone
s in their inputs.lol()
lol
Same here! I'm used to Python and just finished a Java crash course. Went straight here so I could learn all the different methods I could use.
Lol very true
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
We essentialy have the same logic but I love how your's is easier to read.
Nice kata. Smirked once I've realized I was focusing too much on the unnecessary part.
we have the same solution lmao
Oh, very well thought!
Came to say that, hyper clever really.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Loading more items...