Dynamic Array

  • + 0 comments

    This is more about learning I think. It's not really a problem, For each query, 0 index will either 1 or 2. Base on that, we can condition to calculate y and append it.