Katkat

Design an API for Pascal Triangle

FaireSoftware Engineer · Technical Screen

Last updated

This question evaluates API design, HTTP/web-service principles, data modeling, input validation, error handling, and system constraint reasoning when specifying endpoints, request parameters, response schemas, and practical limits.

Design an HTTP API that returns Pascal's triangle for a requested height. The server should return only numeric data, while the client is responsible for formatting, alignment, and rendering. Describe the endpoint, request parameters, response schema, validation rules, error handling, and any practical limits.