Skip to content

Commit cd1cbaa

Browse files
committed
#231: description update
1 parent c5ccb27 commit cd1cbaa

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

c-sharp/Problems/math/PowerOfTwo.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,23 @@
33
* Power of Two
44
**
55
* Given an integer n, return true if it is a power of two. Otherwise, return false.
6-
* An integer n is a power of two, if there exists an integer x such that n == 2x.
6+
* An integer n is a power of two, if there exists an integer x such that n == 2^x.
77
*
88
* Example 1:
99
* Input: n = 1
1010
* Output: true
11-
* Explanation: 20 = 1
11+
* Explanation: 2^0 = 1
1212
*
1313
* Example 2:
1414
* Input: n = 16
1515
* Output: true
16-
* Explanation: 24 = 16
16+
* Explanation: 2^4 = 16
1717
*
1818
* Example 3:
1919
* Input: n = 3
2020
* Output: false
2121
*
22-
* Constraints: -231 <= n <= 231 - 1
22+
* Constraints: -2^31 <= n <= 2^31 - 1
2323
*
2424
* Follow up: Could you solve it without loops/recursion?
2525
**

0 commit comments

Comments
 (0)