eolymp
bolt
Try our new interface for solving problems
Problems

n-th term divisible by a, b or c

published at 5/10/22, 12:38:33 am

I did with greedy O(n) but I'm thiking about optimal solution for log(N) if u did share ur ideas