---
title: "Discussion on \"Solving Valid Anagram\" | Hashnode"
description: "Discussion on \"Solving Valid Anagram\". also google \"Ambigrams\"... far cooler than these"
url: "https://hashnode.com/posts/solving-valid-anagram/64437f0fcaffef2b9f380b41"
---

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

Discussion

# [Solving Valid Anagram](https://dhawalpandya01.hashnode.dev/solving-valid-anagram?utm_source=hashnode&utm_medium=feed)

also google "Ambigrams"... far cooler than these

Apr 22, 2023 · 3 min read · dhawalpandya01.hashnode.dev  
Updated Nov 16, 2023  
Read the article

-   [#dsa](https://hashnode.com/tag/dsa)
-   [#data-structures](https://hashnode.com/tag/data-structures)
-   [#algorithms](https://hashnode.com/tag/algorithms)
-   [#valid-anagram](https://hashnode.com/tag/valid-anagram)
-   [#solution](https://hashnode.com/tag/solution)

## Written by

[Dhawal Pandya](https://hashnode.com/@dhawalpandya01)

@dhawalpandya01 · India

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

Writer | Coder

Engineering @ Bolt

## Responses 1

Markdown supported · ⌘↵ to post

[Isaac Shiffman](https://hashnode.com/@isaac99)

[Nov 16, 2023](https://hashnode.com/posts/solving-valid-anagram/64437f0fcaffef2b9f380b41/comment/65563b18676ebc4d9f66aaf4)

your python XOR solutuon is not valid. It does not work for the two strings s= "aa" and t="bb" because it will return true in this case

[Dhawal Pandya](https://hashnode.com/@dhawalpandya01)

[Nov 16, 2023](https://hashnode.com/posts/solving-valid-anagram/64437f0fcaffef2b9f380b41/comment/65563b18676ebc4d9f66aaf4#reply-65565ec8676ebc4d9f66ae2d)

You know what? That is correct, I had not thought of that edge case. Let me remove that solution.

Thank you for bring that to my attention, cheers.
