05-31-2017 04:50 AM - edited 07-11-2017 02:38 AM
Hi Everyone and welcome to the second LabVIEW Digest Challenge! We had some excellent responses from the first challenge so I hope you’re all ready for another! You can win a free certification exam of your choice!
Email your entries to LabVIEWDigestCompetition@ni.com
The Challenge – Reverse Factorials:
Everyone is probably familiar with a factorial. 5 factorial is:
5! -> 5 x 4 x 3 x 2 x 1 = 120
For this challenge reverse it! Write LabVIEW code that tells us if our input number is a factorial or not.
If the number is a factorial it should return 'x!' where x is the factorial number.
E.g. 120 is 5 factorial, return '5!'
If the number is not a factorial it should return 'NONE'
The code should handle input numbers up to 9,223,372,036,854,775,807 – consider your data types!
Examples:
Close date: Monday 17th July
Please note the competition is only open to LabVIEW users in Europe, Middle East, India and Africa.
Happy coding!
Charlotte
06-15-2017 01:50 AM
What Happend???....
06-15-2017 05:46 AM
Hey,
We're still just getting the challenge ready at the moment. We will time the release of the challenge with our LabVIEW Digest Newsletter so keep an eye out for that.
Schedule towards the end of June.
Thanks,
Charlotte
06-28-2017 08:33 AM
New competition is live!
06-28-2017 10:24 AM
Hi all,
this is my solution.
Regards
06-28-2017 10:33 AM
Hi all,
This is my solution.
Regards,
Craig
06-28-2017 12:32 PM - edited 06-28-2017 02:19 PM
Lookup table makes things simple...
06-28-2017 11:37 PM - edited 06-28-2017 11:39 PM
Hi,
here is my solution. God given lookuptabels are not necessary to make it easy 🙂
Cheers, Achim
06-29-2017 02:27 AM - edited 06-29-2017 02:31 AM
Hi, here is my solution.
06-29-2017 05:52 AM
My Solution 😉