← All problemsSign in

Check for Anagrams

A word, phrase, or name formed by rearranging the letters of another, such as spar, formed from rasp is called an anagram. Write a computer program to enter two words through standard input and check if they are anagrams or not. Input Sequence : Input two strings Output Test Case: Input string 1 : cat Input string 2 : act Output : The input strings are anagrams.

HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17

CodeSearch Tutor

Hints, not spoilers — it won’t hand over the full solution unless you insist.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start