Skip to content

Commit 3e5a072

Browse files
committed
docs: README
1 parent 592eb52 commit 3e5a072

1 file changed

Lines changed: 8 additions & 9 deletions

File tree

README.md

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ In this project, I have collected various best practices and iOS development tip
6464
- [**Leet Code**](#leet-code)
6565
- [Pascal Triangle](#pascal-triangle)
6666
- [Spiral Matrix](#spiral-matrix)
67+
- [Container With Most Water](container-with-most-water)
6768

6869

6970
## **Clean Code**
@@ -1568,21 +1569,19 @@ func spiralOrder(_ matrix: [[Int]]) -> [Int] {
15681569

15691570
**Notice** that you may not slant the container.
15701571

1571-
```
1572+
15721573
**Example 1:**<br>
15731574

15741575
<img src="https://github.com/lgreydev/Help/blob/master/Screenshots/ContainerWithMostWater.jpg" width="350">
15751576

15761577

1577-
*Input:* `height = [1,8,6,2,5,4,8,3,7]` <br>
1578-
*Output:* `49` <br>
1579-
*Explanation:* The above vertical lines are represented by array [1,8,6,2,5,4,8,3,7]. In this case, the max area of water (blue section) the container can contain is 49.
1578+
> *Input:* `height = [1,8,6,2,5,4,8,3,7]` <br>
1579+
> *Output:* `49` <br>
1580+
> *Explanation:* The above vertical lines are represented by array [1,8,6,2,5,4,8,3,7]. In this case, the max area of water (blue section) the container can contain is 49.
15801581

1581-
**Example 2:**<br>
1582-
*Input:* `height = [1,1]`<br>
1583-
*Output:* `1`<br>
1584-
1585-
```
1582+
**Example 2:**<br>
1583+
> *Input:* `height = [1,1]`<br>
1584+
> *Output:* `1`<br>
15861585

15871586
``` swift
15881587

0 commit comments

Comments
 (0)