Tweak
Code
Home
Roadmap
Courses
Problems
Dashboard
Pricing
FREE
Home
Roadmap
Courses
Problems
Dashboard
Pricing
Loading editor…
Python
Java
C++
JavaScript
TypeScript
C#
Go
Kotlin
Swift
Rust
Node 22.08.0
Reset
Run tests
Loading editor…
Test cases
Run to compare output
Case 1
Input
arr1 = [2,3,1,3,2,4,6,7,9,2,19], arr2 = [2,1,4,3,9,6]
Expected
[2,2,2,1,4,3,3,9,6,7,19]
Output
—