leetcode-potd

2683. Neighboring Bitwise XOR

leetcode-potd

A 0-indexed array derived with length n is derived by computing the bitwise XOR (⊕) of adjacent values in a binary array original of length n. Specifically, for each index i in the range [0,

2425. Bitwise XOR of All Pairings

leetcode-potd

You are given two 0-indexed arrays, nums1 and nums2, consisting of non-negative integers. There exists another array, nums3, which contains the bitwise XOR of all pairings of integers

2429. Minimize XOR

leetcode-potd

Given two positive integers num1 and num2, find the positive integer x such that: x has the same number of set bits as num2, and The value x

3042. Count Prefix and Suffix Pairs I

leetcode-potd

You are given a 0-indexed string array words. Let’s define a boolean function isPrefixAndSuffix that takes two strings, str1 and str2: isPrefixAndSuffix(str1, str2) returns true if str1 is both a prefix and a suffix of of str2, and false otherwise. For

2381. Shifting Letters II

leetcode-potd

You are given a string s of lowercase English letters and a 2D integer array shifts where shifts[i] = [starti, endi, directioni]. For every i, shift the characters

Scroll to Top