Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Thanks for your time once more, PHP translation updated.
I hope it can be approved :)
Corrected to 200, sorry, my mistake.
PHP translation translation added :). Please, review and approve (the author is inactive).
Hi,
Thanks for the feedback, I've updated the translation.
I'm not sure what I need to do next, do I need to create another fork? Or can the corrected version be changed from Rejected to Accepted?
PHP translation added :)
This comment is hidden because it contains spoiler information about the solution
My mistake, I've read the comments and now understand, as the title says "decomposition". I need to try decomposing the factorial in steps, rather than calculating the factorial as whole.
I've solved the Kata on my PC (as my VSCode is better), up to 98!
When I copy the code to run on the codeWars server I get an "Error: Call to undefined function bcmul()"
Checking the PHP manual: https://www.php.net/manual/en/bc.installation.php
"These functions are only available if PHP was configured with --enable-bcmath"
"bcmath is not installed automatically with php 7 on linux (ubuntu server)
You have to use: sudo apt-get install php-bcmath"
My version used bcmul, bcdiv, bcmod and bcpow to work with the large numbers invloved.
I guess the 37 people who solved this Kata with PHP used a different method, or an earlier version of PHP. I can only see version 7 on the drop down.