LeetCode
Question
·
Oct 2022
Sprinklr OA 2022
6 upvotes
411 views
2 replies
Question Details
You are given 5 integers a,b,c,d,k. Print the maximum value of x+y such that x and y follow these conditions : a<=x<=b c<=y<=d x^y =k Note : \'^\' sign denotes the XOR operator. Constraints : 0<=a<=b<=pow(10,18) 0<=c<=d<=pow(10,18) 0<=k<=pow(10,18) Note...
Full Details
🔒
Unlock all Square/Block questions
Full insider details, leaked discussions, and candidate experiences.
or every company, $100/year →About This Question
This is a reported interview question from a square/block interview for a swe role during the oa round reported in 2022.
It covers the following topics: Bit Manipulation .