We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
For Golang implementation, pay attention to the compile error in main(), variable m is not used. Please comment the whole snippets of var m. The key for this problem is not to convert string to binary because of limits of uint64 range; if you try to convert string to uint64 and do bitwise operation, most of test cases where the length of string will overflow the range of uint64.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
ACM ICPC Team
You are viewing a single comment's thread. Return to all comments →
For Golang implementation, pay attention to the compile error in main(), variable m is not used. Please comment the whole snippets of var m. The key for this problem is not to convert string to binary because of limits of uint64 range; if you try to convert string to uint64 and do bitwise operation, most of test cases where the length of string will overflow the range of uint64.