I solved front end algorithm challenge to validate US telephone numbers. I enjoyed the challenge and completed it using regex and functions to satisfy all the test cases. In the end I am not very satisfied. Is the goal to build a good solution or is it enough if the solutions passes the test cases. I am asking this for all the algorithm challenges in general.