779. K-th Symbol in Grammar
Problem Statement
Input: n = 1, k = 1
Output: 0
Explanation: row 1: 0Input: n = 2, k = 1
Output: 0
Explanation:
row 1: 0
row 2: 01Input: n = 2, k = 2
Output: 1
Explanation:
row 1: 0
row 2: 01Intuition
Links
Video Links
Approach 1:
Approach 2:
Approach 3:
Approach 4:
Similar Problems
Last updated