# For n=3, why is the answer 739 ? It should be 721.

• I'm confused by the output I see for n=3. For n=3, by my count there are 721 numbers from 0<=x<=1000 which have unique digits. So why is the answer reported to be 739 ?

To confirm my result, I've created an excel sheet which confirms that there are only 721 numbers between 0 and 1000 which have unique digits. Here's the link to the spreadsheet:

Can someone explain to me what's the problem ?

• You're missing for example 5 and 20.

• You're missing for example 5 and 20.

Can you elaborate on what you mean ? I don't understand what you mean by 'examples 5 and 20'.

• I don't see how that's unclear. Those are two of the numbers you're missing.

• I don't see how that's unclear. Those are two of the numbers you're missing.

Sorry but I'm still confused. If you're referring to the numbers on the spreadsheet, they go all the way from 0 to 999. If you don't see all the numbers then that's because there's a filter in place. If you disable that, you should see all the numbers.

• I see that you just down voted my post and also took away a point from my reputation. Not sure why you did that as I believe my question is genuine.

If anyone else can clarify this confusion for me, I'll be super thankful.

• testtesttesttesttesttest

• @ahmadka There are 739. You found 721. So you're missing 18. I showed you two of those 18. So that you can look at them and realize why you're missing them.

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.