Skip to content

Commit f0ea32d

Browse files
committed
Create README - LeetHub
1 parent a6a2188 commit f0ea32d

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

0344-reverse-string/README.md

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<h2><a href="https://leetcode.com/problems/reverse-string">344. Reverse String</a></h2><h3>Easy</h3><hr><p>Write a function that reverses a string. The input string is given as an array of characters <code>s</code>.</p>
2+
3+
<p>You must do this by modifying the input array <a href="https://en.wikipedia.org/wiki/In-place_algorithm" target="_blank">in-place</a> with <code>O(1)</code> extra memory.</p>
4+
5+
<p>&nbsp;</p>
6+
<p><strong class="example">Example 1:</strong></p>
7+
<pre><strong>Input:</strong> s = ["h","e","l","l","o"]
8+
<strong>Output:</strong> ["o","l","l","e","h"]
9+
</pre><p><strong class="example">Example 2:</strong></p>
10+
<pre><strong>Input:</strong> s = ["H","a","n","n","a","h"]
11+
<strong>Output:</strong> ["h","a","n","n","a","H"]
12+
</pre>
13+
<p>&nbsp;</p>
14+
<p><strong>Constraints:</strong></p>
15+
16+
<ul>
17+
<li><code>1 &lt;= s.length &lt;= 10<sup>5</sup></code></li>
18+
<li><code>s[i]</code> is a <a href="https://en.wikipedia.org/wiki/ASCII#Printable_characters" target="_blank">printable ascii character</a>.</li>
19+
</ul>

0 commit comments

Comments
 (0)