+ 2

Combination Coding

Write a program to print all the combinations of 8-letter strings of all the items available in your keyboard.... For Example : If you have a string of like "0123456789abcdefghijklmnopqrstuvwxyz@#$%&-+()*"':;!?,_/.~`|•√π÷׶∆£¢€¥^°={}\©®™℅[]<>" ... You'll have to print a string like "@89fg$%&" Starting from "00000000" to any combination possible...

22nd Jan 2018, 10:01 AM
Avishake Adhikary
Avishake Adhikary - avatar
3 Respostas
+ 4
if i counted right thats 74^8 possibilities. so to make it short... no
22nd Jan 2018, 10:05 AM
Jeremy
Jeremy - avatar
+ 2
that's the long answer lmao
22nd Jan 2018, 12:00 PM
Jeremy
Jeremy - avatar
+ 1
That is not possible with a normal computer within a reasonable amount of time. Also it's complicated to store all that data. Lets say it takes half a microsecond to get a new chain. (74^8) * 0.5*10^(6) / 3600 = 125.000 hours of computation = 14.25 years. Storage: (74^8)bytes / (2^40) = 817 terabytes of storage -> around a petabyte. Double that quantity if it takes two bytes per character.
22nd Jan 2018, 11:39 AM
spcan
spcan - avatar