Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 289 Bytes

README.md

File metadata and controls

23 lines (15 loc) · 289 Bytes

71.Power of Three

Description

Given an integer, write a function to determine if it is a power of three.

Example1

Input: 3
Output: true

Example2

Input: -7
Output: false

From

LeetCode