Just wondering if there was any kinda way of doing this kind of filtering based on comparison other than having to go through each position in an array one by one comparing it to every position in the other array.

If I'm to vague and you need more information let me know.

Recommended Answers

All 2 Replies

Not unless you change your data structure or make certain assumptions based on the order of the array elements. But filtering one random array based on criteria from another random array, no, you're pretty much stuck with the brute force naive methods.

Oops, I forgot computers can't think yet,
oh well,

Time to go study psychology and try and figure out how the brain would do this while I wait for my computer to finish brute forcing

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.