Skip to content

Commit

Permalink
fix: 运算符优先级bug
Browse files Browse the repository at this point in the history
  • Loading branch information
azl397985856 committed Oct 12, 2019
1 parent 0195458 commit 6e0e6ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion problems/342.power-of-four.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ return num == 1;
代码如下:

```js
return num > 0 && num & (num - 1 === 0) && (num - 1) % 3 === 0;
return num > 0 && (num & (num - 1)) === 0 && (num - 1) % 3 === 0;
```

## 关键点
Expand Down

0 comments on commit 6e0e6ce

Please sign in to comment.