This is clever, but not so intuitive in my opinion.
But I'm just getting started with Python and programming in general, so I might change my opinion further down the rabbit hole!
Hello,
from what I understand, if (number % a > 0 or number % b > 0) it will return False because then that is some value.
number % a here is equals to number % a > 0.
so, the program returns True if number % a and number % b DO NOT have any values( because then they are of value 0 )
Oh, those one-liners
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
O(N² + M²)
. This is bad practice, in fact.this is more neat way of doing the same
Very smooth
Same as my solution. Didn't know you can jon two lists of strings. :)
Its a good answer
This comment is hidden because it contains spoiler information about the solution
It doesn't modify the arrays, but creates a new array.
This is clever, but not so intuitive in my opinion.
But I'm just getting started with Python and programming in general, so I might change my opinion further down the rabbit hole!
Very elegant solution, thanks for the lesson!
Hello,
from what I understand, if (number % a > 0 or number % b > 0) it will return False because then that is some value.
number % a here is equals to number % a > 0.
so, the program returns True if number % a and number % b DO NOT have any values( because then they are of value 0 )
Loading more items...