I have a programming problem I'm unsure how to solve.
I have two arrays and a function. The function works on array1 on a given range. Array2 contains ranges in array1 that are forbidden to be worked on.
@johnbudd1350 I want to call the function (the function has 3 arguments, start and end index, and array1) on black parts individually, but the start and end of the red parts is in a different array.
@johnbudd1350 I'm not given a list of ranges. I only know length of array1.
@johnbudd1350 Yeah
@johnbudd1350 Thanks, but how to do it when a range in array2 starts at 0 or ends at end of array1?
If it doesn't you first need to call the function before looping through array2, but you don't know where to end before looping through array2.
I think I might need to make a new array with the acceptable ranges and just loop through that.