网站首页
编程语言
数据库
系统相关
其他分享
编程问答
findk
2024-09-30
[Python手撕]字典序的第K小数字
classSolution:deffindKthNumber(self,n:int,k:int)->int:deffindk(n,k):defcountsteps(prefix,n):start=prefixend=prefix+1steps=0whilestart<