a = 470996387497838
b = 100749658945681
v
v
a = 1101011000101111001100100010111100000011101101110
b = xx10110111010000110011011101000011111100010010001
^
^
so it seems test is correct; I haven't checked the 2nd example you gave. Maybe your code isn't aligning the 2 binary numbers correctly if you are using some kind of string checking approach?
"when representations are of different lengths, the unmatched left-most bits are ignored" Here I ignored 2 bits, marked with x in string b
This comment is hidden because it contains spoiler information about the solution
ok thanks
With the first random test you gave:
so it seems test is correct; I haven't checked the 2nd example you gave. Maybe your code isn't aligning the 2 binary numbers correctly if you are using some kind of string checking approach?
"when representations are of different lengths, the unmatched left-most bits are ignored" Here I ignored 2 bits, marked with
x
in stringb
Test Failed
a = 470996387497838
b = 100749658945681
Expected: False
But was: True
RandomTests
Test Failed
a = 75518036841759754
b = 4512537593315665
Expected: False
But was: True
I think both of these questions supposed to be true