Faire·Software Engineer·Technical Phone Screen
- Given a positive integer representing the height of Pascal's triangle, generate the triangle and print it as centered text. Each number should be right-aligned in a field width equal to the digit count of the largest value in the triangle, and each row should be visually centered relative to the widest row.
“The actual triangle generation was fine, that part I knew cold.”