Skip to content

Commit 9da0f38

Browse files
refactor 321
1 parent eadf3f9 commit 9da0f38

File tree

1 file changed

+0
-26
lines changed
  • src/main/java/com/fishercoder/solutions

1 file changed

+0
-26
lines changed

src/main/java/com/fishercoder/solutions/_321.java

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,5 @@
11
package com.fishercoder.solutions;
22

3-
/**
4-
* 321. Create Maximum Number
5-
*
6-
* Given two arrays of length m and n with digits 0-9 representing two numbers.
7-
* Create the maximum number of length k <= m + n from digits of the two.
8-
* The relative order of the digits from the same array must be preserved.
9-
* Return an array of the k digits. You should try to optimize your time and space complexity.
10-
11-
Example 1:
12-
nums1 = [3, 4, 6, 5]
13-
nums2 = [9, 1, 2, 5, 8, 3]
14-
k = 5
15-
return [9, 8, 6, 5, 3]
16-
17-
Example 2:
18-
nums1 = [6, 7]
19-
nums2 = [6, 0, 4]
20-
k = 5
21-
return [6, 7, 6, 0, 4]
22-
23-
Example 3:
24-
nums1 = [3, 9]
25-
nums2 = [8, 9]
26-
k = 3
27-
return [9, 8, 9]
28-
*/
293
public class _321 {
304
public static class Solution1 {
315
public int[] maxNumber(int[] nums1, int[] nums2, int k) {

0 commit comments

Comments
 (0)