If you want to have a look at the javascript solutions to the pattern problems you can check it out from the below github repo Pattern problems -solutions