Skip to content

Commit 205c856

Browse files
committed
Create README - LeetHub
1 parent 43fd0d2 commit 205c856

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<h2><a href="https://leetcode.com/problems/permutation-in-string/">567. Permutation in String</a></h2><h3>Medium</h3><hr><div><p>Given two strings <code>s1</code> and <code>s2</code>, return <code>true</code><em> if </em><code>s2</code><em> contains a permutation of </em><code>s1</code><em>, or </em><code>false</code><em> otherwise</em>.</p>
2+
3+
<p>In other words, return <code>true</code> if one of <code>s1</code>'s permutations is the substring of <code>s2</code>.</p>
4+
5+
<p>&nbsp;</p>
6+
<p><strong>Example 1:</strong></p>
7+
8+
<pre><strong>Input:</strong> s1 = "ab", s2 = "eidbaooo"
9+
<strong>Output:</strong> true
10+
<strong>Explanation:</strong> s2 contains one permutation of s1 ("ba").
11+
</pre>
12+
13+
<p><strong>Example 2:</strong></p>
14+
15+
<pre><strong>Input:</strong> s1 = "ab", s2 = "eidboaoo"
16+
<strong>Output:</strong> false
17+
</pre>
18+
19+
<p>&nbsp;</p>
20+
<p><strong>Constraints:</strong></p>
21+
22+
<ul>
23+
<li><code>1 &lt;= s1.length, s2.length &lt;= 10<sup>4</sup></code></li>
24+
<li><code>s1</code> and <code>s2</code> consist of lowercase English letters.</li>
25+
</ul>
26+
</div>

0 commit comments

Comments
 (0)