---
title: "Discussion on \"Valid Anagram Solution - LeetCode 242\" | Hashnode"
description: "Discussion on \"Valid Anagram Solution - LeetCode 242\". Intuition\nAfter seeing the problem statement, I thought of the best one HashMap :)To store the frequency of one string and compare that with another string's frequency. However, we can also minimize the extra computation of importing and implementing..."
url: "https://hashnode.com/posts/valid-anagram-solution-leetcode-242/64775ef596611f4367665705"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Valid Anagram Solution - LeetCode 242](https://5p7ro0t.hashnode.dev/valid-anagram-solution-leetcode-242?utm_source=hashnode&utm_medium=feed)

Intuition After seeing the problem statement, I thought of the best one HashMap :)To store the frequency of one string and compare that with another string's frequency. However, we can also minimize the extra computation of importing and implementing...

May 31, 2023 · 2 min read · 5p7ro0t.hashnode.dev  
Read the article

-   [#datastructure](https://hashnode.com/tag/datastructure)
-   [#array](https://hashnode.com/tag/array)
-   [#valid-anagram](https://hashnode.com/tag/valid-anagram)
-   [#java](https://hashnode.com/tag/java)

## Written by

[Kumar Spandan Pattanayak](https://hashnode.com/@5p7Ro0t)

@5p7Ro0t · Bhubaneswar, India

  
[View profile](https://hashnode.com/@5p7Ro0t)

Student | LeetCoder | Tech Freak | Fast Learner

I'm a Tech Freak, who loves to be hands-on with competitive programming. Exploring Machine Learning, DevOps, Cyber Security :)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
