Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Let N a number with j digits
- Let S a set
- Let d(x) the digit of N at point x
- for i from 1 to j {
- Insert d(i) into S
- }
- Let len(x) the length of x
- if len(S) >= len(N) {
- N fits our criteria
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement