Daily One Algorithm
A blog dedicated to those who live, drink and eat Algorithms.
Friday, September 15, 2006
Repeated Digits
Given a number with n digits.
Find whether there are repeated digits in that number.
If n > 10, return true //there are repeated digits
if n <= 10, we can create an array of size 10 and record number of entries...this wont need many resources...
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)