Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5214953

Browse files
refactor 342
1 parentab5b163 commit5214953

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
publicclass_342 {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp