MediumRating 1556
3653. XOR After Range Multiplication Queries I
arraydivide-and-conquersimulation
解題說明
C++ 解法
複雜度分析
虛擬碼
1. For each query [l, r, val]: a. For i from l to r: nums[i] *= val 2. Compute XOR of all elements in nums 3. Return the XOR result