jyotikajaiswal / Decoding-Leetcode

Collection of LeetCode questions to ace the coding interview! - Created using [LeetHub](https://github.com/QasimWani/LeetHub)
0 stars 4 forks source link

Create Maximum Number #3

Open jyotikajaiswal opened 2 years ago

jyotikajaiswal commented 2 years ago

You are given two integer arrays nums1 and nums2 of lengths m and n respectively. nums1 and nums2 represent the digits of two numbers. You are also given an integer k.

Create the maximum number of length k <= m + n from digits of the two numbers. The relative order of the digits from the same array must be preserved.

Return an array of the k digits representing the answer.

jayitsaha commented 2 years ago

Please assign this issue!