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.
This felt like such a C++ oriented problem, given that the best way to do things was with bitwise operations. I'm impressed Java has as much functionality for bit-level operations as it does - you don't even need to use BitSet, although it certainly makes the code a lot neater.
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 →
This felt like such a C++ oriented problem, given that the best way to do things was with bitwise operations. I'm impressed Java has as much functionality for bit-level operations as it does - you don't even need to use BitSet, although it certainly makes the code a lot neater.