My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more
Dhawal Pandya

56 reads

2 comments

Isaac Shiffman
Isaac Shiffman
Nov 16, 2023

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

1
·
·1 reply
Dhawal Pandya
Dhawal Pandya
Author
·Nov 16, 2023

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.

·