Skip to content

Commit d265993

Browse files
committed
Create README - LeetHub
1 parent 07b9eed commit d265993

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

205-isomorphic-strings/README.md

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/isomorphic-strings/">205. Isomorphic Strings</a></h2><h3>Easy</h3><hr><div><p>Given two strings <code>s</code> and <code>t</code>, <em>determine if they are isomorphic</em>.</p>
2+
3+
<p>Two strings <code>s</code> and <code>t</code> are isomorphic if the characters in <code>s</code> can be replaced to get <code>t</code>.</p>
4+
5+
<p>All occurrences of a character must be replaced with another character while preserving the order of characters. No two characters may map to the same character, but a character may map to itself.</p>
6+
7+
<p>&nbsp;</p>
8+
<p><strong>Example 1:</strong></p>
9+
<pre><strong>Input:</strong> s = "egg", t = "add"
10+
<strong>Output:</strong> true
11+
</pre><p><strong>Example 2:</strong></p>
12+
<pre><strong>Input:</strong> s = "foo", t = "bar"
13+
<strong>Output:</strong> false
14+
</pre><p><strong>Example 3:</strong></p>
15+
<pre><strong>Input:</strong> s = "paper", t = "title"
16+
<strong>Output:</strong> true
17+
</pre>
18+
<p>&nbsp;</p>
19+
<p><strong>Constraints:</strong></p>
20+
21+
<ul>
22+
<li><code>1 &lt;= s.length &lt;= 5 * 10<sup>4</sup></code></li>
23+
<li><code>t.length == s.length</code></li>
24+
<li><code>s</code> and <code>t</code> consist of any valid ascii character.</li>
25+
</ul>
26+
</div>

0 commit comments

Comments
 (0)