Balanced Strings

2.8

9 votes
Basic Programming, Easy, HashMap, Hash table
Problem

Balance strings, by definition, are the strings that contain all the characters of the alphabet, from a to z, equal no of times. eg- abcdefghijklmnopqrstuvwxyz is a balanced string, aabb is not.

Input:
First line contains number of test cases T. Each test case contains a string S which made up of only lowercase characters.

Output:
For each test case print Yes if the string is balanced string else print No.

Constraints:
1<=T<=10
1<=|S|<=1000

Time Limit: 2
Memory Limit: 256
Source Limit:
Editor Image

?