1p3a Experience · Dec 2025

Fanatics coding assessment on ASCII chart display

Interview Experience

Problem Statement Develop a program that renders an ASCII graph to visualize online auction data, where the X-axis represents time and the Y-axis represents price. Input Specifications * **Dat

Full Details

Problem Statement Develop a program that renders an ASCII graph to visualize online auction data, where the X-axis represents time and the Y-axis represents price. Input Specifications * Data Set: {{1,2}, {2, 3}, {3, 1}, {4, 6}, {5, 8}} * Dimensions: max_x = 5, max_y = 8 (These values are provided, though calculating them dynamically from the dataset is preferred). Output Requirements The program must generate a 2D grid enclosed by borders. Each coordinate pair from the data set should be plotted within the grid using an asterisk (*). While specific axis legends and titles are optional, the visualization should generally adhere to the following format: text Title item +-----+-----+-----+-----+-----+-----+ + * + + + + * + $ + + + + + * + + * + + * + +-----+-----+-----+-----+-----+-----+ time

Free preview. Unlock all questions →

Topics

Graphs

More from Fanatics