All Downloads are FREE. Search and download functionalities are using the official Maven repository.

g2301_2400.s2317_maximum_xor_after_operations.Solution.kt Maven / Gradle / Ivy

There is a newer version: 1.32
Show newest version
package g2301_2400.s2317_maximum_xor_after_operations

// #Medium #Array #Math #Bit_Manipulation #2023_06_30_Time_373_ms_(100.00%)_Space_50_MB_(100.00%)

class Solution {
    fun maximumXOR(nums: IntArray): Int {
        var max = 0
        for (n in nums) {
            max = max or n
        }
        return max
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy