I have exactly the same problem. I am using C#
I have exactly the same problem
Yeah, I have seen the error. thanks.
are you doing this?
charCodeAt(yourIndexHere)
then do this:
yourStringHere.charCodeAt(yourIndexHere)
I am getting this error in javascript: 'charCodeAt' is not defined? Am I mistaken that this is a javascript function?
Thanks, let me think with that. Trying to figure out what scenario am ignoring with my formula.
What kind of hint would you need? Is this any helpful: https://www.wolframalpha.com/input/?i=12%5E30%5E21 ?
Am passing all tests except this one [[12, 30, 21], 6], ... Someone drop me a distant hint? Am using Ruby.
I also don't get it: [1, "[", "]"] not same as ["[", "]", 1]
I don't understand the logic here. Can someone explain?:
[ 1, [ 1, 1 ] ].same_structure_as( [ 2, [ 2, 2 ] ] )
[ 1, [ 1, 1 ] ].same_structure_as( [ [ 2, 2 ], 2 ] )
[1, [ , ] ] same as [ [ , ] ,1]
This comment is hidden because it contains spoiler information about the solution
Yeah. That's what I did to pass the test. Hadn't seen it in the instruction. My bad.
[(a, b), ...] or [[a, b], ...] or {{a, b}, ...} or ... will be sorted in increasing order of the "a".
Why does the test have an issue with the same result? I thought my code was wrong till I realized it is the same thing!
Expected: [[550320, 908566], [559756, 893250], [893250, 559756], [908566, 550320]], instead got: [[559756, 893250], [893250, 559756], [550320, 908566], [908566, 550320]]
Passed the tests without performing validations on instances where the ships are vertical. Only did validation for horizontal ships. Tests should be improved to cover that lapse.
Loading collection data...
I have exactly the same problem. I am using C#
I have exactly the same problem
Yeah, I have seen the error. thanks.
are you doing this?
charCodeAt(yourIndexHere)
then do this:
yourStringHere.charCodeAt(yourIndexHere)
I am getting this error in javascript: 'charCodeAt' is not defined? Am I mistaken that this is a javascript function?
Thanks, let me think with that. Trying to figure out what scenario am ignoring with my formula.
What kind of hint would you need? Is this any helpful: https://www.wolframalpha.com/input/?i=12%5E30%5E21 ?
Am passing all tests except this one [[12, 30, 21], 6], ... Someone drop me a distant hint? Am using Ruby.
I also don't get it: [1, "[", "]"] not same as ["[", "]", 1]
I don't understand the logic here. Can someone explain?:
should return true
[ 1, [ 1, 1 ] ].same_structure_as( [ 2, [ 2, 2 ] ] )
should return false
[ 1, [ 1, 1 ] ].same_structure_as( [ [ 2, 2 ], 2 ] )
should return true
[1, [ , ] ] same as [ [ , ] ,1]
This comment is hidden because it contains spoiler information about the solution
Yeah. That's what I did to pass the test. Hadn't seen it in the instruction. My bad.
Why does the test have an issue with the same result? I thought my code was wrong till I realized it is the same thing!
Expected: [[550320, 908566], [559756, 893250], [893250, 559756], [908566, 550320]], instead got: [[559756, 893250], [893250, 559756], [550320, 908566], [908566, 550320]]
Passed the tests without performing validations on instances where the ships are vertical. Only did validation for horizontal ships. Tests should be improved to cover that lapse.
Loading more items...