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.
i got a crude formula and used mathway :P
OP solved it, closing
There's a brute force, recursive solution which will time out (it happened to me the first time) and then there are smart solutions, much more efficient.
I suggest using the brute force solution to print combinations that you can analyze and recognize patterns, which will then inspire you to come up with something more efficient.
Allocation for new string is expensive.
When
a = "011"
andb = "01"
,your solution compared them as0 vs 0 and 1 vs 1
but it should be0 vs 0, 0 vs 1 and 1 vs 1 (011 & 001)
It should be infinite, in other words - endless, limitless, illimitable, unending, unceasing, perpetual.
So never ending but within a time limit (12 seconds).
( Depending on your language ) It still is.
Try lookup "prime sieve"
This comment is hidden because it contains spoiler information about the solution
It's readable, even by the janitor?
This comment is hidden because it contains spoiler information about the solution
Because window's size is greater than length of the list.
can you explain your solution, that's a bitwise or(xor) operator right?
can you explain your solution, that's a bitwise or(xor) operator right?
can you explain your solution, that's a bitwise or(xor) operator right?
Loading more items...