in reply to Remove the duplication in Hash values
Update: You probably want just arrays (ie reconsider the storage model) of [0..9] and to iterate them afresh for each key iteration of the containing hash when reading and writing to the hash.
Oops a cow flew by. Therefore a corrected response: There need to be clearer rules for the deletion - must the solution be contiguous? ie must it allow gaps if there is no other way to include a set that doesn't overlap another - what if two ranges overlap but are of the same size with one higher than the other - how is a winner selected between them?
One world, one people
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Remove the duplication in Hash values
by lidden (Curate) on May 20, 2011 at 10:54 UTC |
In Section
Seekers of Perl Wisdom