[Solved] K-th Symbol in Grammar Contest Problem
![[Solved] K-th Symbol in Grammar Contest Problem [Solved] K-th Symbol in Grammar Contest Problem](https://realcoder.techss24.com/wp-content/uploads/2022/06/Solved-K-th-Symbol-in-Grammar-Contest-Problem.png)
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,…