AnagramProblem code: TECH04 |
In this problem, you are given two strings S1 and S2, your task is to determine whether one string is an anagram of the other. An anagram of a string is a string obtained by permuting the letters of a string. For example aaba and aaab are anagrams, while abcd and deba are not.
Input
The first line would consist of the number of test cases 'T'. This would be followed by 'T' lines consisting of two space separated strings. The strings would consist of only letters 'a'-'z'. Each string would consist of no more than 20 characters.
Output
You have to print "YES" if one string is an anagram of the other or "NO" otherwise.
Example
Input: 2 aaba aaab abcd deba Output: YES NO
| Author: | technovanza10 |
| Date Added: | 12-01-2010 |
| Time Limit: | 2 sec |
| Source Limit: | 50000 Bytes |
| Languages: | C, C99 strict, CLOJ, CPP 4.0.0-8, CPP 4.3.2, F#, GO, JAVA, PERL6, PYTH 3.1.2, TEXT |
Comments

Fetching successful submissions

#include<iostream.h>
#include<iostream.h>
dude my progam is working in
dude my progam is working in dec c++,which version should i select while submittin?(its giving compilation error here)
Select C++(g++).
Select C++(g++).
Cheaters ,you know how to
Cheaters ,you know how to only cheat people,its not working at all ,no proper mentioning of anything,totally bogus
algoCrack, Technovanza10I
algoCrack, Technovanza10
I didnt register on codechef as algoCrack_{teamname} but have
registerd on ur site as {teamname} , can i do something now , if yes
please tell me.....
i'm having 3rd place in ur
i'm having 3rd place in ur contest handle vish