Skip to content

Commit

Permalink
feat: use relative path
Browse files Browse the repository at this point in the history
  • Loading branch information
yanglbme committed Apr 22, 2021
1 parent d5cc3ac commit 0ee718c
Show file tree
Hide file tree
Showing 1,227 changed files with 52,536 additions and 35,251 deletions.
2 changes: 1 addition & 1 deletion solution/0000-0099/0002.Add Two Numbers/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<p> </p>

<p><strong>示例 1:</strong></p>
<img alt="" src="https://assets.leetcode-cn.com/aliyun-lc-upload/uploads/2021/01/02/addtwonumber1.jpg" style="width: 483px; height: 342px;" />
<img alt="" src="/solution/0000-0099/0002.Add Two Numbers/images/addtwonumber1.jpg" style="width: 483px; height: 342px;" />
<pre>
<strong>输入:</strong>l1 = [2,4,3], l2 = [5,6,4]
<strong>输出:</strong>[7,0,8]
Expand Down
2 changes: 1 addition & 1 deletion solution/0000-0099/0002.Add Two Numbers/README_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<p>&nbsp;</p>
<p><strong>Example 1:</strong></p>
<img alt="" src="https://assets.leetcode.com/uploads/2020/10/02/addtwonumber1.jpg" style="width: 483px; height: 342px;" />
<img alt="" src="/solution/0000-0099/0002.Add Two Numbers/images/addtwonumber1.jpg" style="width: 483px; height: 342px;" />
<pre>
<strong>Input:</strong> l1 = [2,4,3], l2 = [5,6,4]
<strong>Output:</strong> [7,0,8]
Expand Down
173 changes: 104 additions & 69 deletions solution/0000-0099/0005.Longest Palindromic Substring/README_EN.md
Original file line number Diff line number Diff line change
@@ -1,69 +1,104 @@
# [5. Longest Palindromic Substring](https://leetcode.com/problems/longest-palindromic-substring)

[中文文档](/solution/0000-0099/0005.Longest%20Palindromic%20Substring/README.md)

## Description

<p>Given a string <code>s</code>, return&nbsp;<em>the longest palindromic substring</em> in <code>s</code>.</p>
<p>&nbsp;</p>
<p><strong>Example 1:</strong></p>
<pre>
<strong>Input:</strong> s = &quot;babad&quot;
<strong>Output:</strong> &quot;bab&quot;
<strong>Note:</strong> &quot;aba&quot; is also a valid answer.
</pre>
<p><strong>Example 2:</strong></p>
<pre>
<strong>Input:</strong> s = &quot;cbbd&quot;
<strong>Output:</strong> &quot;bb&quot;
</pre>
<p><strong>Example 3:</strong></p>
<pre>
<strong>Input:</strong> s = &quot;a&quot;
<strong>Output:</strong> &quot;a&quot;
</pre>
<p><strong>Example 4:</strong></p>
<pre>
<strong>Input:</strong> s = &quot;ac&quot;
<strong>Output:</strong> &quot;a&quot;
</pre>
<p>&nbsp;</p>
<p><strong>Constraints:</strong></p>
<ul>
<li><code>1 &lt;= s.length &lt;= 1000</code></li>
<li><code>s</code> consist of only digits and English letters (lower-case and/or upper-case),</li>
</ul>

## Solutions

<!-- tabs:start -->

### **Python3**

```python

```

### **Java**

```java

```

### **...**

```

```

<!-- tabs:end -->
# [5. Longest Palindromic Substring](https://leetcode.com/problems/longest-palindromic-substring)

[中文文档](/solution/0000-0099/0005.Longest%20Palindromic%20Substring/README.md)

## Description

<p>Given a string <code>s</code>, return&nbsp;<em>the longest palindromic substring</em> in <code>s</code>.</p>



<p>&nbsp;</p>

<p><strong>Example 1:</strong></p>



<pre>

<strong>Input:</strong> s = &quot;babad&quot;

<strong>Output:</strong> &quot;bab&quot;

<strong>Note:</strong> &quot;aba&quot; is also a valid answer.

</pre>



<p><strong>Example 2:</strong></p>



<pre>

<strong>Input:</strong> s = &quot;cbbd&quot;

<strong>Output:</strong> &quot;bb&quot;

</pre>



<p><strong>Example 3:</strong></p>



<pre>

<strong>Input:</strong> s = &quot;a&quot;

<strong>Output:</strong> &quot;a&quot;

</pre>



<p><strong>Example 4:</strong></p>



<pre>

<strong>Input:</strong> s = &quot;ac&quot;

<strong>Output:</strong> &quot;a&quot;

</pre>



<p>&nbsp;</p>

<p><strong>Constraints:</strong></p>



<ul>
<li><code>1 &lt;= s.length &lt;= 1000</code></li>
<li><code>s</code> consist of only digits and English letters (lower-case and/or upper-case),</li>
</ul>

## Solutions

<!-- tabs:start -->

### **Python3**

```python

```

### **Java**

```java

```

### **...**

```
```

<!-- tabs:end -->
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

<p><strong>示例 1:</strong></p>

<p><img alt="" src="https://aliyun-lc-upload.oss-cn-hangzhou.aliyuncs.com/aliyun-lc-upload/uploads/2018/07/25/question_11.jpg" style="height: 287px; width: 600px;" /></p>
<p><img alt="" src="/solution/0000-0099/0011.Container With Most Water/images/question_11.jpg" style="height: 287px; width: 600px;" /></p>

<pre>
<strong>输入:</strong>[1,8,6,2,5,4,8,3,7]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<p>&nbsp;</p>
<p><strong>Example 1:</strong></p>
<img alt="" src="https://s3-lc-upload.s3.amazonaws.com/uploads/2018/07/17/question_11.jpg" style="width: 600px; height: 287px;" />
<img alt="" src="/solution/0000-0099/0011.Container With Most Water/images/question_11.jpg" style="width: 600px; height: 287px;" />
<pre>
<strong>Input:</strong> height = [1,8,6,2,5,4,8,3,7]
<strong>Output:</strong> 49
Expand Down
Loading

0 comments on commit 0ee718c

Please sign in to comment.