Challenge 39– Format my Phone Number
To perform effectively as a software application developer, one must be acquainted with various facets of application development. To test the skills of application developers, Superior Consulting Services (SCS) offers a series of technical coding challenges designed to challenge and educate application developers. This blog addresses problem solving and algorithm development, and presents SCS’ thirty ninth (39th) challenge: Format my Phone Number.
Let’s get ready to rumble
Each SCS challenge will require the user to solve a problem. All questions are designed to be solvable by mid-level application developers in one hour or less. The 39th challenge is shown below.
Challenge #39 involves creating a function to format a telephone number.
Specifically, write a function that accepts an array of 10 integers (between 0 and 9), that returns a string of those numbers in the form of a phone number.
For instance in C#,
- Come up with the correct code format an array of integers into a correctly formatted 10 digit telephone number (123)456-7890 no spaces.
- Make the function as small (based on total number of characters) as possible and have it perform correctly.
- Any programming language may be employed.
- Contestant challenge submittals should be emailed to firstname.lastname@example.org, Subject Line SCS Coding Challenge #39.
- Reponses to Challenge #39 should be received by 5:00 pm CDT, May 31st, 2018.
- In the event of a tie between two or more winning solutions, the first solution received will receive the prize; however, all submitters with good solutions will be recognized.
- Employees of SCS are not eligible to participate in the coding challenge.
The best solution submitted will receive an Amazon.com gift certificate worth $25.00 (U.S. dollars) and have the winning solution, along with the winner’s name, on the SCS website: www.teamscs.com.
 Codewars – 6ku challenge – www.codewars.com