Sab labs programming question
You have developed an e-commerce website,SHOPPY.Many people have created accounts at your website.you have the passwords of all the users.you want to know how many distinct password =s are there in total.Details of the passwords are as described:
Each password is a string of characters from a to z
Two passwords, say pass1 and pass2 are said to be same if pass2 can be obtained by swapping the ith character in pass1 where (i+j)%2=0
input1:N,number of users registered input2:Array of strings containing all passwords of the N users.
Output: return T total number of distinct password present
Open Chat in New Window