on-internet
← Community

How can the longest sorted sequence be extracted from a bucket array containing individually sorted buckets without repetitions?

Stack Overflow ·

Consider a bucket array containing sorted and/or empty buckets, and the goal is to extract the longest possible sequence in sorted order, under the following conditions: Only one element in each bucket can be used per construction, and the same element cannot be reused if encountered in another bucket. Buckets cannot be rearranged, reordered, or repositioned, and must be treated incidentally in the provided order. Empty buckets can be skipped. This is a problem that was formulated in the middle of solving a different problem with an entirely different objective. I have decided to call this Lon

Comments

Sign in or sign up to comment and upvote.

No comments yet.