Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 07cb7b3

Browse files
refactor 440
1 parent 981ded0 commit 07cb7b3

File tree

1 file changed

+0
-18
lines changed
  • src/main/java/com/fishercoder/solutions

1 file changed

+0
-18
lines changed

src/main/java/com/fishercoder/solutions/_440.java

-18
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,5 @@
11
package com.fishercoder.solutions;
22

3-
/**
4-
* 440. K-th Smallest in Lexicographical Order
5-
*
6-
* Given integers n and k, find the lexicographically k-th smallest integer in the range from 1 to n.
7-
8-
Note: 1 ≤ k ≤ n ≤ 109.
9-
10-
Example:
11-
12-
Input:
13-
n: 13 k: 2
14-
15-
Output:
16-
10
17-
18-
Explanation:
19-
The lexicographical order is [1, 10, 11, 12, 13, 2, 3, 4, 5, 6, 7, 8, 9], so the second smallest number is 10.
20-
*/
213
public class _440 {
224

235
public static class Solution1 {

0 commit comments

Comments
 (0)