Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Anagram of two strings #330

Merged
merged 1 commit into from
Oct 7, 2024
Merged

Conversation

Shivaraj2003
Copy link
Contributor

Anagram

Problem Statement

Write a program that takes two strings as input and determines if they are anagrams of each other. An anagram is a word or phrase formed by rearranging the letters of another.

Your program should print "Anagram" if the two input strings are anagrams and "Not Anagram" if they are not.

Input

  • Two strings, str1 and str2, consisting of lowercase or uppercase letters and spaces.

Output

  • "Anagram" if the two input strings are anagrams.
  • "Not Anagram" if the two input strings are not anagrams.

Example

Input

str1 = "listen"
str2 = "silent"

Output

Anagram

Consider this contribution under HacktoberFest 2024

Thank you!

@Saloni6111 Saloni6111 added the hacktoberfest-accepted contribute for hacktoberfest 2024 label Oct 7, 2024
@Saloni6111 Saloni6111 merged commit ccc580e into Saloni6111:main Oct 7, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest-accepted contribute for hacktoberfest 2024
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants