给出一个整数N,它适合长(小于2 ^ 63-1)和50个其他整数.你的任务是找到从1到N的多少个数字不包含50个数字作为其子串?
这个问题来自一次采访.
language-agnostic algorithm
algorithm ×1
language-agnostic ×1