THAPA TECHNICAL

HOUSE OF WEB DEVELOPERS AND TECHNOLOGY.

How many possible 3 character combinations using letters?

How many possible 3 character combinations using letters? 


Q1: How many combinations can be using 3 alphabet letters (from A to Z)? Note that string doesn't have to be unique, it can be eg. RPP or AZZ

sol: You can make three independent choices, one for each of the three letters. For each choice, you have 26 options (the letters in the alphabet). So the total number of combinations is


If you want the letters to be unique, the calculation changes slightly. You still have 26 options for the first choice, but for the second choice there are now only 25 options available (all letters except the one you already chose), and for the third choice there are 24 options available (all letters except the two you already chose). So this gives you:


  TASK FOR YOU


Q1:  How many possible 7 characters combination using numbers and letters(alphabets)? 
Comment below to answer. Let see who is going to give the correct answer.

To check more on password decrypting process: https://www.quora.com/How-long-does-it-take-to-crack-an-8-character-password

2 comments:

  1. This result will complete the task

    $(letter = Array("A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z");
    for(i=0;i<26;i++){
    for(j=0;j<26;j++){
    for(k=0;k<26;k++){
    echo $letter[i].$letter[j].$letter[k]. "
    "
    }
    }
    }

    ReplyDelete