'looks like u solved it'
'sum |= 1<<e' or 'sum ^= 1<<e' will help, then check 'sum == 1022'
its slower but more reliable
12. 12.12.12
I found it was because blank.For eaxmple :12.12 .12.12 is invalid IP.
provided str may not totally constructed by numbers (maybe: ' abc.sdf.sdf.sdf')
This comment is hidden because it contains spoiler information about the solution
Thanks!I met this problem and thought it is interesting.Next time I will create my own kata!
Duplicate of: https://www.codewars.com/kata/58ba6fece3614ba7c200017f https://www.codewars.com/kata/is-number-a-palindrome
Hi bro! I think u forgot ont thing. The sum equals 45 doesn't mean it is a sudoku! I thought of this idea and then denied it. Becasue 6+6+6 = 5+6+7. I can put all 5 in a line but it's not correct!
I had never thought of function sort!Clever boy!
Loading collection data...
'looks like u solved it'
'sum |= 1<<e'
or
'sum ^= 1<<e'
will help, then check
'sum == 1022'
its slower but more reliable
12. 12.12.12
I found it was because blank.For eaxmple :12.12 .12.12 is invalid IP.
provided str may not totally constructed by numbers (maybe: ' abc.sdf.sdf.sdf')
This comment is hidden because it contains spoiler information about the solution
Thanks!I met this problem and thought it is interesting.Next time I will create my own kata!
Duplicate of:
https://www.codewars.com/kata/58ba6fece3614ba7c200017f
https://www.codewars.com/kata/is-number-a-palindrome
Hi bro! I think u forgot ont thing.
The sum equals 45 doesn't mean it is a sudoku!
I thought of this idea and then denied it.
Becasue 6+6+6 = 5+6+7.
I can put all 5 in a line but it's not correct!
I had never thought of function sort!Clever boy!