Revolut | Graduate Software Engineer (Junior/New Grad) | Coding | Online Assessment

immmcanadianimmmcanadian·
Interview Date:September 4, 2026Region:EU (Europe)Hiring Team/Org:General Hire

Question 1: Maximum XOR Range You are given a positive integer n, where n is divisible by 4. Choose an integer x satisfying: x = n x has the same binary length as n Define: \[ V = n \oplus (n+1) \oplus (n+2) \oplus \dots \oplus x \] where ⊕ represents the bitwise XOR operation. Return the value of x that maximizes V. If multiple values of x produce the same maximum value, return the smallest such x. Example 1 Input:...

Sign in to view the full interview experience

Create or use your InterviewDB account to read the full Warren post and all shared details.

Sign in to continue
0

Discussion

0

Log in to post a comment or vote.

Sort by
Loading comments...

Interview Resources

InterviewDB

About InterviewDB

Crowdsourced Interview Question Bank for Job Seekers in Tech/Finance Industry

Copyright © 2026 InterviewDB. Victory is reserved for those who are willing to pay its price.