Question bank › Matrix
Dsa Matrix Easy

Find the Kth Row of Pascal's Triangle

Given a non-negative integer k, return the kth row of Pascal's triangle. The input is given as: - A single integer k (0 ≤ k ≤ 30). Output the kth row as a space-separated string of integers. Example: Input: 3 Output: 1 3 3 1

Key concepts

matrixcombinatoricstriangleindexing

Practise this out loud — free

Start a mock interview on THIS exact question — a voice AI interviewer opens with it, pushes back like a real onsite, then hands you an instant scorecard.

🎙 Practise this question now
Part of InterviewLab's verified interview question bank. We show the prompt and concepts to practise with — never a copy-paste solution.