Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^3: Getting combinations from a number's digits

by Eimi Metamorphoumai (Deacon)
on Jul 10, 2006 at 16:05 UTC ( #560175=note: print w/replies, xml ) Need Help??


in reply to Re^2: Getting combinations from a number's digits
in thread Getting combinations from a number's digits

If you have access to change the database, I wonder whether it would be better to store all the numbers sorted (either in the main table, or in a separate table), and then look them up that way. So if the user enters "312", you'd check for "123". Then you're only doing one lookup instead of 6.
  • Comment on Re^3: Getting combinations from a number's digits

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://560175]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (5)
As of 2020-10-31 04:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (286 votes). Check out past polls.

    Notices?