News for hackers. Stuff that matters.
Re:In a study of senior CS majors, U.S. students are tops in... by mooreds on Tuesday March 19, 2019 @02:02PM (#19433576)
10 * 9 * 8

The first time you pick, you have 10 different numbers to choose from, the second time, 9, the third time 8.

Re:In a study of senior CS majors, U.S. students are tops in... by somehnreader on Wednesday March 20, 2019 @05:02AM (#19440230)
Or if you are like me (and a bit stupid):

1000 = all possible combinations from 000 to 999.

less 10 combinations with all numbers identical is 990.

now there are three patterns for numbers to be identical left that need to be taken out: 00x 0x0 x00. The x can be replaced with all digits != 0 in this example, so thats 3 (patterns) x 9 ('x' digits) = 27. That times 10 digits that can have double patterns is 270.

1000 - 10 - 270 = 720.

Re:In a study of senior CS majors, U.S. students are tops in... by mooreds on Saturday March 30, 2019 @01:08PM (#19530513)
Hmmm. I wouldn't have approached it that way. Thanks for sharing! Lots of ways to approach any problem.