You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* On the first row, we write a 0. Now in every subsequent row, we look at the previous row and replace each occurrence of 0 with 01, and each occurrence of 1 with 10.
*
* Given row number A and index B, return the Bth indexed symbol in row A. (The values of B are 0-indexed.).
*
*
*
* Problem Constraints
* 1 <= A <= 105
*
* 0 <= B <= min(2A - 1 - 1 , 1018)
*
*
*
* Input Format
* First argument is an integer A.
*
* Second argument is an integer B.
*
*
*
* Output Format
* Return an integer denoting the Bth indexed symbol in row A.