HTMLify
LeetCode - Find the Index of the First Occurrence in a String - Python
Views: 383 | Author: abh
1 2 3 4 | class Solution: def findKthNumber(self, n: int, k: int) -> int: l = sorted(map(lambda e:str(e), range(1, n+1))) return int(l[k-1]) |