Problems > Shortest Words First > Editorial

Shortest Words First — Solution & Editorial

Back to the Problem

Composite key (length, word).

Complexity: O(W log W)