Skip to content

Commit 5214953

Browse files
refactor 342
1 parent ab5b163 commit 5214953

File tree

1 file changed

+8
-2
lines changed
  • src/main/java/com/fishercoder/solutions

1 file changed

+8
-2
lines changed

src/main/java/com/fishercoder/solutions/_342.java

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,14 @@
55
*
66
* Given an integer (signed 32 bits), write a function to check whether it is a power of 4.
77
*
8-
* Example:
9-
* Given num = 16, return true. Given num = 5, return false.
8+
* Example 1:
9+
* Input: 16
10+
* Output: true
11+
*
12+
* Example 2:
13+
* Input: 5
14+
* Output: false
15+
*
1016
* Follow up: Could you solve it without loops/recursion?
1117
* */
1218
public class _342 {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy