Spectrum-CETB / Spectober_Fest

A repository by Spectrum-CETB for celebrating month long festival of open-source called Hacktoberfest.
MIT License
19 stars 62 forks source link

Anagram solved using java #74

Closed soumyaranjan-panda closed 1 year ago

soumyaranjan-panda commented 1 year ago

name: ''Soumyaranjan" about: '' title: ''Anagram" labels: hacktoberfest assignees: ''


Description

Solved Anagram Problem Given two strings s and t, return true if t is an anagram of s, and false otherwise.

An Anagram is a word or phrase formed by rearranging the letters of a different word or phrase, typically using all the original letters exactly once.

Problem Explanation

We can consider two strings as anagrams, if they have the same characters, and each character occurs with the same frequency. Hence, the problem can be solved by maintaining the frequency of characters.

Type of change

Checklist: