leetle

Daily challenge for 2025-03-29

88. Generate a List of Squares from 1 to N

Write a function solve that generates a list of squares from 1 to N (inclusive).

Example:
Input: 4
Output: [1, 4, 9, 16]

Run this challenge interactively in Python or JavaScript when the app loads.