Skip to content

Commit 376c430

Browse files
fix build
1 parent 31d7f3d commit 376c430

File tree

1 file changed

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

1 file changed

+13
-13
lines changed

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

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -49,23 +49,23 @@ public List<Integer> grayCode(int n) {
4949
}
5050
}
5151

52-
public static void main (String... args) {
52+
public static void main(String... args) {
5353
System.out.println("-----------------------------------------------------------------------------------------");
5454
System.out.println("How to understand i << n? It means n to the power of two, see below. So we have an equivalent solution, which is solution2.");
55-
System.out.println("1 << 2: " + (1 << 2));
56-
System.out.println("1 << 3: " + (1 << 3));
57-
System.out.println("1 << 4: " + (1 << 4));
58-
System.out.println("1 << 5: " + (1 << 5));
59-
System.out.println("1 << 6: " + (1 << 6));
55+
System.out.println("1 << 2: " + (1 << 2));
56+
System.out.println("1 << 3: " + (1 << 3));
57+
System.out.println("1 << 4: " + (1 << 4));
58+
System.out.println("1 << 5: " + (1 << 5));
59+
System.out.println("1 << 6: " + (1 << 6));
6060
System.out.println("-----------------------------------------------------------------------------------------");
6161
System.out.println("How to understand i >> 1? It means to shift the number i to the right by 1 bit, see below");
62-
System.out.println("0 >> 1: " + (0 >> 1));
63-
System.out.println("1 >> 1: " + (1 >> 1));
64-
System.out.println("2 >> 1: " + (2 >> 1));
65-
System.out.println("3 >> 1: " + (3 >> 1));
66-
System.out.println("4 >> 1: " + (4 >> 1));
67-
System.out.println("5 >> 1: " + (5 >> 1));
68-
System.out.println("6 >> 1: " + (6 >> 1));
62+
System.out.println("0 >> 1: " + (0 >> 1));
63+
System.out.println("1 >> 1: " + (1 >> 1));
64+
System.out.println("2 >> 1: " + (2 >> 1));
65+
System.out.println("3 >> 1: " + (3 >> 1));
66+
System.out.println("4 >> 1: " + (4 >> 1));
67+
System.out.println("5 >> 1: " + (5 >> 1));
68+
System.out.println("6 >> 1: " + (6 >> 1));
6969
}
7070

7171
}

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