A Pascal's triangle is formed as given below:
1
1 1
1 2 1
1 3 3 1
Problem statement:
Given a number, return an array containing the Kth row of a pascals triangle.
Exmaple:
K = 3
output: [1,3,3,1]
Question:
https://www.interviewbit.com/old/problems/kth-row-of-pascals-triangle/
Code:
https://github.com/prayagcbose/code/blob/main/Kth%20Row%20of%20Pascal's%20Triangle
Download
0 formats
No download links available.
Kth Row of Pascal's Triangle | InterviewBit in java | codingbose in malayalam | NatokHD