Topic: Two Pointer Problem / Level: beginner

Problem: Check if an array can be split into two subarrays where one contains only odd numbers and the other only even numbers using two pointers.

Run the code to see the output here...