algorithm - Pair socks from a pile efficiently? - Stack Overflow Given a pile of n pairs of socks, ...

Please Visit: http://ift.tt/1ajReyV



algorithm - Pair socks from a pile efficiently? - Stack Overflow



Given a pile of n pairs of socks, containing 2n elements (assume each sock has exactly one matching pair), what is the best way to pair them up efficiently with up to logarithmic extra space? (I believe I can remember that amount of info if needed.)

http://ift.tt/1KxofNi

Done






from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1KxofNj

via LifeLong Community

No comments:

Post a Comment