Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 658
  • Last Modified:

Generating all possible string combinations

Hi,

I wish to write a program that generates all possible combinations of strings of length five consisting of the numbers 0-9 and all upper and lower case letters/

Currently I'm using five nested for loops to do this, however this is VERY slow.

Can anyone suggest any better solutions?

Thanks in advance.
0
Duggary
Asked:
Duggary
  • 2
1 Solution
 
CEHJCommented:
You could really do with a permutations and combinations library to produce your 6471002 combinations. If i've time, i'll look for one.
0
 
CEHJCommented:
0

Featured Post

[Webinar] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now