Skip to content

Editorial Mistake in the Explanation for Problem 440. K-th Smallest in Lexicographical Order #24339

@Mehamoodshaik

Description

@Mehamoodshaik

LeetCode Username

mehamoodshaik

Problem Number, Title, and Link

  1. K-th Smallest in Lexicographical Order https://leetcode.com/problems/k-th-smallest-in-lexicographical-order/

Bug Category

Editorial

Bug Description

In the editorial for Problem 440. K-th Smallest in Lexicographical Order, there is a mistake in the explanation regarding the children of numbers in lexicographical order.

Incorrect statement:

"For example, the number 1 has children 10, 11, 12, ..., up to 19. Similarly, 2 has children 20, 21, ..., up to 19."

Correction:

"For example, the number 1 has children 10, 11, 12, ..., up to 19. Similarly, 2 has children 20, 21, ..., up to 29."

The mistake lies in the fact that the children of 2 should go up to 29, not 19. This could cause confusion for users trying to understand the lexicographical structure.

Language Used for Code

None

Code used for Submit/Run operation

No response

Expected behavior

Correction:
"For example, the number 1 has children 10, 11, 12, ..., up to 19. Similarly, 2 has children 20, 21, ..., up to 29."

Screenshots

Screenshot (67)

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions