Retired

So Basic - iteration II (retired)

Description:

Summary: In this kata we want to help an alien retailer.

Scenario: You work for the IRS and have been sent the 1040 form for a local retailer. In your spare time you discover the retailer is native to Beta Centauri and have a base 62 numbering system - which explains the problems you were having correcting his Adjusted Gross Income (AGI).

Task: Generate a convertBase62ToDecimal method that converts a base-62 value into its decimal equivalent.

Scope:

  • Presume all digits, upper-case, and lower-case letters are valid.
  • Digits are 0-9, then A-Z, then a-z

Examples:

  • A (base 62) = 10 (base 10)
  • a (base 62) = 36 (base 10)
  • 1c (base 62) = 100 (base 10)
  • 100 (base 62) = 3844 (base 10)

Note: Input can be either a string or a number.

Fundamentals

More By Author:

Check out these other kata created by dvjc

Stats:

CreatedNov 20, 2015
Warriors Trained65
Total Skips13
Total Code Submissions121
Total Times Completed26
JavaScript Completions26
Total Stars1
% of votes with a positive feedback rating58% of 12
Total "Very Satisfied" Votes7
Total "Somewhat Satisfied" Votes0
Total "Not Satisfied" Votes5
Total Rank Assessments12
Average Assessed Rank
7 kyu
Highest Assessed Rank
6 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • dvjc Avatar
  • Omiant Avatar
Ad