- #36
- 2,168
- 193
Vanadium 50 said:Nonsense.
I mean arrays don't support (|) or (&) operations. Of course, array's can be used. But I have to transform these operations into the loops and that's not so good.
I'll do the same thing but using extra loops to create operations.
I can do the same with set's and only using 2 simple operation symbol. I don't see how using arrays would change the run-time, without changing the algorithm itself. (Also I remember that sets are faster then when searching numbers in it. In my previous question about prime numbers I guess)
I think the problem is in the algorithm itself.
I can try to create a method where at some steps I can reset the num_set_0 so that the length of set does not exceed ten thousand