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.
Yes mine failed with price = 54 discount = 5 holiday_cost = 8856
I fix the different length since that was a mistake, Thanks
[[1, 2, 5], [2, 3, 4], [3, 1, 4], [1, 4, 3]] Returns False because the value 5 is not in at least 2 of the other 3 lists
I'm going to work on random test, once i finished i'll mark this issue as resolved
Thanks again!
Thanks, my native language is not english so I was having some errors in the description, it's fix now
The actual requirement is "if every value from any of the lists is in at leats 2 of the other 3 lists".
There are no sample tests either.
[[True, False], [True], [False, True], []]
False
, but1
is in 2 of the other listsMakes my code looks like spaguetti
It´s Python code, giving the "clever" solution it´s not a benefit for anyone XD
This will FAIL in some cases, i did it like this, but division in python using // is not always precise, use with care
PD: I was getting an error but attempt it until a random case didn´t break my code :-)
Concatenation of string using + is extremely inefficient, better add to a list using append() and then "".join
Oh
I don't get it, can someone explain pls
bruh
This comment is hidden because it contains spoiler information about the solution
care to tell why?
Loading more items...