FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Unique array of arrays - how can I do this?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Unique array of arrays - how can I do this? [message #181308] Sat, 04 May 2013 11:51 Go to previous message
thomas.lehmann.privat is currently offline  thomas.lehmann.privat
Messages: 1
Registered: May 2013
Karma:
Junior Member
Hi,

While calculation I get a solution as an array of integers.
There're many solutions and I would like to keep them in an array.

Because of the algorithm there are different paths to get to
the same solution but I want to have it once only.

I know that I can use array_unique but that's too slow
when called too often. I can't wait until end of calculation
because then I run into memory problems.

So I need an efficient way to add elements once only to
an array while calculation with an array as element.

How can I do this?
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: replacing spaces with newline
Next Topic: changing video source from youtube to my site
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Nov 27 23:14:43 GMT 2024

Total time taken to generate the page: 0.04465 seconds