Topic: Two Pointer Problem / Level: beginner

Problem: Given a sorted array, remove elements such that no element is greater than twice its previous element using two pointers.

Run the code to see the output here...