I believe these solutions are not right. By the profile picture it seems that each time 7 circles are generated and 1 of 7 circles is removed. At the second iteration we would have for Area, 1 - 1/3 - 6/81 which is 66/81, and not 68/81. It seems that some people found a formula used in the test suite....but that hardly represents the picture. This problem needs a better description. It is not clear at all what should be done. Sierpinski triangle divide each side by 2, Sierpinski carpet divide each side by 3, and a Sierpinski circle would divide by what number? By the profile picture, it seems that the length of the circle is to be divided by 6 (since it generates hexagon-like structures)....but this recursive step wouldn't reach the solution in the test suite.
PS: It is also possible that the user changed his profile picture, but then this would make this problem unsolvable without hacking.
Replace all zeros and NaNs in a matrix with the string 'error'
We love vectorized solutions. Problem 1 : remove the row average.
Reverse the elements of an array
Will there be a new leader?
house of cards
Find the treasures in MATLAB Central and discover how the community can help you!
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office