Zelis Coding Assessment (2025 Decemeber) | Deep Dive into Bits & Logic | On-campus

Question · Posted Jun 2026

Question 1: X and Y Set Bits Problem Statement Given two numbers X and Y, find the number whose binary representation has its X-th and Y-th bits set to 1 and the remaining bits set to 0. (Bits are 0-indexed from right to left). Input Format The first line of input contains T - the number of test cases. It's followed by T lines. Each subsequent line contains two integers: X - the index of the first set bit and ...

The full answer & interview discussion are available to premium members.

Log in Create a free account