I stumbled upon a problem, maybe someone can give me pointers on how to solve it?
So, lets assume i have an array of objects (we can assume they're lists within a list), so something like that:
{ {1,2}, {2}, {1,2}, {3,4,5}, {1,2} }
The elements within the object appear only once (e.g. no duplicates like {2,2,4})
. Before I thought I would need only two equal objects from the list of objects and double-looping worked the problem nicely, but now I need more and brute-forcing through array became really painful. So, how would I find indices of the {1,2}
without creating ugly method with triple-quad-etc. looping?
Thank you