# Tag Info

Accepted

### Find the Nth number divisible by only 2,3,5, or 7

No, not $O(n)$. Not even close. I'll get back to this later though. First, the code: It's a little difficult to tell what your loop logic is. curr is getting ...
• 18.4k

• 49.4k

### Find smallest number of squares that sum to a number

Review of your existing code (with some small performance improvements): nums = {} for x in range(1,n+1): nums[x] = 1 creates a dictionary with keys from <...
• 22.7k