SCHOOL OF CODE BUILDERS
Learn To CODE. Become A DEVELOPER.
Pages
HOME
DATA STRUCTURES
STRINGS
ARRAYS
MATRIX
BINARY TREES
LINKED LIST
STACK
QUEUE
SORTING
SEARCHING
C
PYTHON
PSEUDOCODE
CONTEST PROBLEMS
ALGORITHMS
PATTERNS
PHP
C PUZZLES
C INTERVIEW QUESTIONS
JAVA
C++
HASHING
RECURSION
BASIC C PROGRAMS
TCS-CODEVITA
FACEBOOK
CONTACT US
To check whether a string contains all the characters of the alphabet, from a to z, equal number of times
To check whether a string contains all the characters of the alphabet, from a to z, equal number of times
Python Implementation:
t=int(raw_input()) while(t>0): s=raw_input() flag=1 counta=s.count('a') for i in range(98,123): if(counta!=s.count(str(unichr(i)))): flag=0 break if flag==1: print "Yes" else: print "NO" t-=1
C Implementation:
To check whether a string has all the alphabets a - z
PREVIOUS
NEXT
HOME