Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(440): Hard #77

Merged
merged 1 commit into from
Sep 22, 2024
Merged

feat(440): Hard #77

merged 1 commit into from
Sep 22, 2024

Conversation

DziedzicGrzegorz
Copy link
Owner

No description provided.

Given two integers n and k, return the kth lexicographically smallest integer in the range [1, n].

Example 1:

Input: n = 13, k = 2
Output: 10
Explanation: The lexicographical order is [1, 10, 11, 12, 13, 2, 3, 4, 5, 6, 7, 8, 9], so the second smallest number is 10.
Example 2:

Input: n = 1, k = 1
Output: 1

Constraints:

1 <= k <= n <= 109
Copy link

codecov bot commented Sep 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Files with missing lines Coverage Δ
internal/Leetcode/440/440.go 100.00% <100.00%> (ø)

@DziedzicGrzegorz DziedzicGrzegorz merged commit d1f6afc into dev Sep 22, 2024
3 checks passed
@DziedzicGrzegorz DziedzicGrzegorz deleted the feat/Leetcode-440 branch September 22, 2024 20:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant