-2

I need to be able to iterate through every possible ICD10 code (medical procedures). The code is 7 characters long, with the first digit being 0-9, the second being 0-9 or B-Y, etc.

I feel like this can be done best with recursion, but I can't seem to figure it out.

1
  • again one of those userXXXX questions...
    – phoet
    Jul 31, 2012 at 19:00

1 Answer 1

0

start with the last character, the ones place or what ever. add all the possibilities to an array.

for each new colume add each possibilty to each item in the array and add all of these to a new array.

repeat until have all...

you could make an enumerator form 0 - y

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.