All Tracks Problem

Balanced Strings
Tag(s):

Basic Programming, Hash table, HashMap

Problem
Editorial
Analytics

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

SAMPLE INPUT
2
codemyca
abcdefghijklmnopqrstuvwxyz
SAMPLE OUTPUT
No
Yes
Time Limit: 2.0 sec(s) for each input file.
Memory Limit: 256 MB
Source Limit: 1024 KB
Marking Scheme: Marks are awarded when all the testcases pass.
Allowed Languages: Bash, C, C++, C++14, C++17, Clojure, C#, D, Erlang, F#, Go, Groovy, Haskell, Java, Java 8, Java 14, JavaScript(Rhino), JavaScript(Node.js), Julia, Kotlin, Lisp, Lisp (SBCL), Lua, Objective-C, OCaml, Octave, Pascal, Perl, PHP, Python, Python 3, Python 3.8, R(RScript), Racket, Ruby, Rust, Scala, Swift-4.1, Swift, TypeScript, Visual Basic

CODE EDITOR

Initializing Code Editor...
Your Rating:

Contributor

This Problem was Asked in

YMCA University

Challenge Name

CodeMyca

Notifications
View All Notifications

?