Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

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*

Draft saved
Draft discarded
Cancel
5
  • 1
    \$\begingroup\$ Can the list have repeats? \$\endgroup\$ Commented Feb 29, 2024 at 22:39
  • \$\begingroup\$ @xnor Yes, whoops, I'll add some testcases for that. \$\endgroup\$ Commented Feb 29, 2024 at 22:40
  • 6
    \$\begingroup\$ Perhaps replace "set" with "ordered list" — a set is usually taken to mean an unordered data type that stores unique values. \$\endgroup\$ Commented Feb 29, 2024 at 23:21
  • \$\begingroup\$ @doubleunary Maybe it should be multiset. or bag. Which is both unordered and may contains duplicate values. And example is collections.Counter in Python or std::multiset int C++. \$\endgroup\$ Commented Mar 1, 2024 at 2:27
  • 1
    \$\begingroup\$ It really bothers me that the empty prefix isn't included. :( \$\endgroup\$ Commented Mar 1, 2024 at 16:39

AltStyle によって変換されたページ (->オリジナル) /