Showing 3 questions
Given two integers and a maximum bit limit, find two numbers within the limit that maximize their bitwise XOR product. Return the maximum possible product modulo a large number.
#1. Maximum Xor Product
Find the median of two sorted arrays. The arrays can be of different sizes, and you should aim for an efficient solution.
#2. Median of Two Sorted Arrays
Imagine people standing in a queue with varying heights. For each person, determine how many people they can see in front of them (taller people block the view).
#3. Number of Visible People in a Queue