Skip to content

Commit cf9f6e8

Browse files
refactor 42
1 parent 9d13550 commit cf9f6e8

File tree

1 file changed

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

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
public class _42 {
1616

1717
public static class Solution1 {
18-
/**O(n) time and O(1) space, awesome!
18+
/**
19+
* O(n) time and O(1) space, awesome!
1920
*
2021
* 1. first scan to find the max height index
2122
* 2. then scan from left up to max index and find all the water units up to the max height

0 commit comments

Comments
 (0)