TORONTO KIDS COMPUTER CLUB | Markham Saturday 14:00 Java Homework 20.05.09.
17504
post-template-default,single,single-post,postid-17504,single-format-standard,ajax_fade,page_not_loaded,,qode-theme-ver-7.6.2,wpb-js-composer js-comp-ver-6.10.0,vc_responsive

Markham Saturday 14:00 Java Homework 20.05.09.

14 May Markham Saturday 14:00 Java Homework 20.05.09.

Question:
Write code to check whether two strings are anagrams of each other. Print ‘yes’ if they are anagrams of each other, otherwise print ‘no’.

Sample Input 1:
abcd
bcda

Sample Ouput 1:
Yes

Sample Input 2:
apple
papla

Sample Output 2:
No

Sample Input 3:
listen
silent

Sample Output 3:
Yes
No Comments

Sorry, the comment form is closed at this time.