Daily challenge for 2025-06-06
157. Check Number Sign
Write a function solve that takes an integer n and returns the string "positive" if n is greater than 0, "negative" if n is less than 0, and "zero" if n is equal to 0.
Example 1:Input: 5Output: "positive"
Example 2:Input: -3Output: "negative"
Example 3:Input: 0Output: "zero"
Run this challenge interactively in Python or JavaScript when the app loads.