27. Play With OR
My Approach
Time and Auxiliary Space Complexity
Code (C++)
int* game_with_number(int arr[], int n)
{
for(int i = 0 ; i < n - 1; ++i){
arr[i] |= arr[i+1];
}
return arr;
}Contribution and Support
Last updated