leetle

Daily challenge for 2025-07-19

200. Check if Number is Power of Three

Write a function solve that takes a positive integer and returns True if it's a power of 3, otherwise False.

Example:
Input: 9
Output: True

Because 9 = 3²

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