Skip to content
This repository has been archived by the owner on Oct 17, 2023. It is now read-only.

Added valid_anagram.java #542

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Sahil-Madhyan
Copy link

  • I have added a Java program to check if two strings are anagrams of each other. An anagram is a word that is formed by rearranging the letters of another word, such as “anagram” and “nagaram”.
  • The program uses an array to store the frequency of each letter in the strings and compares them. It returns true if the strings are anagrams and false otherwise.
  • The program also has some examples and constraints from LeetCode.
  • Please review my code and let me know if there are any issues or suggestions. Thank you.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant