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.

@matrix The way you phrase the problem doesn't make sense to me. What are you trying to accomplish? Write a function that does something with array2's forbidden ranges? What does "works on" mean? What is the interface of the function you are given (parameters and return values and types)?

@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.

@matrix @johnbudd1350
can you create a temporary structure or can you only work on the arrays in-place?
Follow

@Corfiot @johnbudd1350 I can create anything I want. Just can't touch the arrays.

· · Web · 0 · 0 · 1
Sign in to participate in the conversation
Game Liberty Mastodon

Mainly gaming/nerd instance for people who value free speech. Everyone is welcome.