Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • \$\begingroup\$ Related nowhere near a dupe though \$\endgroup\$ Commented Dec 28, 2017 at 3:51
  • \$\begingroup\$ Are the strings guaranteed to be different? \$\endgroup\$ Commented Dec 28, 2017 at 10:00
  • \$\begingroup\$ @Neil Although I can't imagine a situation where them being identical would cause problems, you can assume that all strings will be unique. \$\endgroup\$ Commented Dec 28, 2017 at 10:07
  • \$\begingroup\$ @ATaco It can certainly matter if you're not using built-in string comparison. \$\endgroup\$ Commented Dec 28, 2017 at 19:00
  • \$\begingroup\$ Should have been called "XORt an array" :p \$\endgroup\$ Commented Aug 31, 2023 at 13:12