Skip to content

Commit 727acfe

Browse files
committed
Create README - LeetHub
1 parent 793a160 commit 727acfe

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

0242-valid-anagram/README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<h2><a href="https://leetcode.com/problems/valid-anagram/">242. Valid Anagram</a></h2><h3>Easy</h3><hr><div><p>Given two strings <code>s</code> and <code>t</code>, return <code>true</code> <em>if</em> <code>t</code> <em>is an anagram of</em> <code>s</code><em>, and</em> <code>false</code> <em>otherwise</em>.</p>
2+
3+
<p>An <strong>Anagram</strong> is a word or phrase formed by rearranging the letters of a different word or phrase, typically using all the original letters exactly once.</p>
4+
5+
<p>&nbsp;</p>
6+
<p><strong class="example">Example 1:</strong></p>
7+
<pre><strong>Input:</strong> s = "anagram", t = "nagaram"
8+
<strong>Output:</strong> true
9+
</pre><p><strong class="example">Example 2:</strong></p>
10+
<pre><strong>Input:</strong> s = "rat", t = "car"
11+
<strong>Output:</strong> false
12+
</pre>
13+
<p>&nbsp;</p>
14+
<p><strong>Constraints:</strong></p>
15+
16+
<ul>
17+
<li><code>1 &lt;= s.length, t.length &lt;= 5 * 10<sup>4</sup></code></li>
18+
<li><code>s</code> and <code>t</code> consist of lowercase English letters.</li>
19+
</ul>
20+
21+
<p>&nbsp;</p>
22+
<p><strong>Follow up:</strong> What if the inputs contain Unicode characters? How would you adapt your solution to such a case?</p>
23+
</div>

0 commit comments

Comments
 (0)