We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent de75e6d commit 043d8c2Copy full SHA for 043d8c2
power-of-three.go
@@ -0,0 +1,10 @@
1
+//https://leetcode.com/problems/power-of-three/
2
+
3
+package leetcode_solutions_golang
4
5
+func isPowerOfThree(n int) bool {
6
+ if n > 0 && 1162261467%n == 0 {
7
+ return true
8
+ }
9
+ return false
10
+}
0 commit comments