Monte-Carlo integration
Write a function that estimates a d-dimensional integral to at least 1% relative precision.
Inputs:
* d: positive integer....
4 years ago
Solved
Word Distance - Sum
Let's suppose that the distance of a word can be calculated by summing the differences between its letters, having assigned the ...
4 years ago
Solved
The End of the World
given a date -- represent it in the Maya long count system.
<https://en.wikipedia.org/wiki/Maya_calendar>
<https://maya.nm...
4 years ago
Solved
Lost days
Given two dates in a particular format, calculate the difference between them.
4 years ago
Solved
Cantor counting
Find the nth cantor's rational number. the sequence is given below in the link.
Sequence: 1/1,1/2,2/1,3/1,2/2,1/3,1/4... ... .....
Negative without '-'
Simple: return a negative number without using the '-' sign.
Thanks to Problem <https://www.mathworks.com/matlabcentral/cody/...
5 years ago
Solved
The Piggy Bank Problem
Given a cylindrical piggy bank with radius g and height y, return the bank's volume. [ g is first input argument.]
Bonus though...
5 years ago
Solved
Last non-zero digit
Given a number n, find the last non-zero digit of the factorial of that number.
You need to take care of the large values of n....
6 years ago
Solved
Brain Teaser Solver
Write an algorithm to solve this brain teaser:
You have a square that is broken into four triangles, the area of three of tho...