Merged LIS
You have two arrays $A$ and $B$ of size $N$ and $M$ respectively. You have to merge both the arrays to form a new array $C$ of size $N + M$ (the relative order of elements in the original arrays $A$ and $B$ should not change in the array $C$). For e.g. if $A = [{\color{blue}1}, {\color{blue}2}, {\color{blue}7} ]$ and $B = [{\color{red}3}, {\color{red}6}, {\color{red}5}]$, one possible way to merg
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start