Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
This comment is hidden because it contains spoiler information about the solution
hey, thanks!
it's actually not a binary or, but a union operator. the syntax was added to python 3.9 as a way to combine two dictionas a way to combine two dictionaries.
If you're interested, here's the details:
https://peps.python.org/pep-0584/
look at all these numbers:
I'm not sure about the subtleties of
big O
, however (and I could be wrong about this) but I note that this solution creates a total offour
new string objects &two
new list objects, which all require some level of "under the hood" iterations, whereas my solution creates none of those new objects, and only iterates through the input string once. Meanwhile, I am very curious about how my Python code would be judged because the style is not exactly Pythonic. Any feedback would be most appreciated.This comment is hidden because it contains spoiler information about the solution
Please use spoiler flag next time.