Skip to content
View PeculiarE's full-sized avatar

Block or report PeculiarE

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Maximum 250 characters. Please don't include any personal information such as legal names or email addresses. Markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned Loading

  1. Set Mismatch - LeetCode - Days 44 & 45 Set Mismatch - LeetCode - Days 44 & 45
    1
    [Question](https://leetcode.com/problems/set-mismatch/description)
    2
    
                  
    3
    # Intuition
    4
    Use a Set to store all unique numbers in the array and detect the duplicate.
    5
    
                  
  2. Decode XORed Array - LeetCode - Day 46 Decode XORed Array - LeetCode - Day 46
    1
    [Question](https://leetcode.com/problems/decode-xored-array/description)
    2
    
                  
    3
    # Intuition
    4
    If we play around with the XOR (^) relationship between numbers:
    5
    
                  
  3. Two Out of Three - LeetCode - Day 47 Two Out of Three - LeetCode - Day 47
    1
    [Question](https://leetcode.com/problems/two-out-of-three/description)
    2
    
                  
    3
    # Intuition
    4
    Convert each array to a Set and find the intersection between the sets.
    5
    
                  
  4. Construct the Minimum Bitwise Array ... Construct the Minimum Bitwise Array I - LeetCode - Day 48
    1
    [Question](https://leetcode.com/problems/construct-the-minimum-bitwise-array-i/description)
    2
    
                  
    3
    # Intuition
    4
    - The bitwise OR of two consectutive numbers will always give an odd number. Therefore, if any element in the `nums` array is even, then it is impossible to find two consecutive numbers that can be successfully OR-ed together to get that value.
    5
    
                  
  5. Minimum Operations to Equalize Array... Minimum Operations to Equalize Array - LeetCode - Day 49
    1
    [Question](https://leetcode.com/problems/minimum-operations-to-equalize-array/description)
    2
    
                  
    3
    # Intuition
    4
    In a single operation, we can choose the entire array as the subarray, AND all its elements to get the value of the bitwise AND, then replace each element in the array with this value, making the entire array equal.
    5
    
                  
  6. Minimum Number of Flips to Reverse B... Minimum Number of Flips to Reverse Binary String - LeetCode - Days 50 & 51
    1
    [Question](https://leetcode.com/problems/minimum-number-of-flips-to-reverse-binary-string/description)
    2
    
                  
    3
    # Intuition
    4
    Is there a way to check and compare the bits of the number without having to generate its binary string and reverse it?
    5