You are viewing a single comment's thread. Return to all comments →
void max_possible_value(int n , int k) { std::cout << ((((k - 1) | k) > n && k % 2 == 0) ? k - 2 : k - 1) << std::endl; }
Seems like cookies are disabled on this browser, please enable them to open this website
Day 29: Bitwise AND
You are viewing a single comment's thread. Return to all comments →
Or replace your code with this line: