Skip to content

Commit 947b9ca

Browse files
author
openset
committed
Update: description
1 parent d09dd8b commit 947b9ca

File tree

3 files changed

+21
-14
lines changed

3 files changed

+21
-14
lines changed

problems/maximum-xor-of-two-numbers-in-an-array/README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,23 @@
1111

1212
## 421. Maximum XOR of Two Numbers in an Array (Medium)
1313

14-
<p>Given a <b>non-empty</b> array of numbers, a<sub>0</sub>, a<sub>1</sub>, a<sub>2</sub>, , a<sub>n-1</sub>, where 0 &le; a<sub>i</sub> < 2<sup>31</sup>.</p>
14+
<p>Given a <b>non-empty</b> array of numbers, a<sub>0</sub>, a<sub>1</sub>, a<sub>2</sub>, &hellip; , a<sub>n-1</sub>, where 0 &le; a<sub>i</sub> &lt; 2<sup>31</sup>.</p>
1515

1616
<p>Find the maximum result of a<sub>i</sub> XOR a<sub>j</sub>, where 0 &le; <i>i</i>, <i>j</i> &lt; <i>n</i>.</p>
1717

1818
<p>Could you do this in O(<i>n</i>) runtime?</p>
1919

20-
<p><b>Example:</b>
20+
<p><b>Example:</b></p>
21+
2122
<pre>
2223
<b>Input:</b> [3, 10, 5, 25, 2, 8]
2324

2425
<b>Output:</b> 28
2526

2627
<b>Explanation:</b> The maximum result is <b>5</b> ^ <b>25</b> = 28.
2728
</pre>
28-
</p>
29+
30+
<p>&nbsp;</p>
2931

3032
### Related Topics
3133
[[Bit Manipulation](https://github.com/openset/leetcode/tree/master/tag/bit-manipulation/README.md)]

problems/partition-equal-subset-sum/README.md

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,35 +11,40 @@
1111

1212
## 416. Partition Equal Subset Sum (Medium)
1313

14-
<p>Given a <b>non-empty</b> array containing <b>only positive integers</b>, find if the array can be partitioned into two subsets such that the sum of elements in both subsets is equal.
15-
</p>
14+
<p>Given a <b>non-empty</b> array containing <b>only positive integers</b>, find if the array can be partitioned into two subsets such that the sum of elements in both subsets is equal.</p>
15+
16+
<p><b>Note:</b></p>
1617

17-
<p><b>Note:</b><br />
1818
<ol>
19-
<li>Each of the array element will not exceed 100.</li>
20-
<li>The array size will not exceed 200.</li>
19+
<li>Each of the array element will not exceed 100.</li>
20+
<li>The array size will not exceed 200.</li>
2121
</ol>
22-
</p>
2322

24-
<p><b>Example 1:</b>
23+
<p>&nbsp;</p>
24+
25+
<p><b>Example 1:</b></p>
26+
2527
<pre>
2628
Input: [1, 5, 11, 5]
2729

2830
Output: true
2931

3032
Explanation: The array can be partitioned as [1, 5, 5] and [11].
3133
</pre>
32-
</p>
3334

34-
<p><b>Example 2:</b>
35+
<p>&nbsp;</p>
36+
37+
<p><b>Example 2:</b></p>
38+
3539
<pre>
3640
Input: [1, 2, 3, 5]
3741

3842
Output: false
3943

4044
Explanation: The array cannot be partitioned into equal sum subsets.
4145
</pre>
42-
</p>
46+
47+
<p>&nbsp;</p>
4348

4449
### Related Topics
4550
[[Dynamic Programming](https://github.com/openset/leetcode/tree/master/tag/dynamic-programming/README.md)]

problems/word-pattern/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
<strong>Output:</strong> false</pre>
4141

4242
<p><b>Notes:</b><br />
43-
You may assume <code>pattern</code> contains only lowercase letters, and <code>str</code> contains lowercase letters separated by a single space.</p>
43+
You may assume <code>pattern</code> contains only lowercase letters, and <code>str</code> contains lowercase letters that may be separated by a single space.</p>
4444

4545
### Related Topics
4646
[[Hash Table](https://github.com/openset/leetcode/tree/master/tag/hash-table/README.md)]

0 commit comments

Comments
 (0)