Design an API for Pascal Triangle
FaireSoftware Engineer · Technical ScreenLast 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.
Solution walkthrough is for members
Get the full walkthrough with reference code and complexity analysis, plus Kitty Coach at 300 messages a day. Hints, the code runner and community answers stay free.