Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Ask questions, find answers and collaborate at work with Stack Overflow for Teams.
Ask questions, find answers and collaborate at work with Stack Overflow for Teams. Explore Teams
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
#05AB1E, 9 8 bytes
Code:
lvyð-{}Q
Explanation:
l # Lowercase the strings vy } # Map over the list, for each... ð- # remove spaces { # and sort Q # Check equality
Try it online!
#05AB1E, 99 8 bytes
2FIlðlvyð-{}Q
2Fl } # DoLowercase the following twicestrings Il vy } # Read a line ofMap inputover andthe convertlist, tofor lowercaseeach... ð- # Remove remove spaces { # Sort the string and sort Q # Compare the two ofCheck themequality
This looks like the exact same submission of Luis Mendo Don Muesli
Try it online!Try it online!
#05AB1E, 9 bytes
2FIlð-{}Q
2F } # Do the following twice Il # Read a line of input and convert to lowercase ð- # Remove spaces { # Sort the string Q # Compare the two of them