[Solved] K-th Symbol in Grammar Contest Problem
K-th Symbol in Grammar: You are given two integers, ‘N’ and ‘K’. Your task is to return the ‘K-th’ bit in row ‘N’ of the given sequence. Sequence: The first row contains a single bit ‘1’. In each subsequent row,…