[LeetCode][342. Power of Four] Just One Line Code with Detailed Explanation
By Long Luo
This article is the solution Just One Line Code with Detailed Explanation of Problem 342. Power of Four .
Math
If
Then:
If
Therefore, we can check whether
JAVA
1 | class Solution { |
Analysis
- Time Complexity:
. - Space Complexity:
.
All suggestions are welcome. If you have any query or suggestion please comment below. Please upvote👍 if you like💗 it. Thank you:-)
Explore More Leetcode Solutions. 😉😃💗
预览: