Following the very nice blogpost on the: Wolfram Blog about Rosetta code, it would be very nice if we could expand—as a community—the number of solved tasks on the Rosetta code website for the Mathematica Language.
The unsolved tasks for Mathematica can be found here. The number of tasks remaining is:
- 145 (june 4th)
- 141 (june 5th)
- 133 (june 6th)
- 130 (june 7th)
- 128 (june 14th)
- 125 (june 17th)
- 120 (june 21st)
- 119 (july 4th)
Some of the tasks are very easy to implement; others are tricky and very hard (if not impossible).
Just now, I solved a couple of problems:
I hope that we can solve some more problems and quickly reduce this number. Furthermore, I hope to start a lively discussion of problem solving and algorithm implementation. As you know, the Wolfram language is very broad and supports many paradigms, so many tasks can be implemented in multiple ways. You should strive to find the most elegant solution (short code, fast run-time).
Some problems that should not be too hard to solve are:
- Parse an IP Address
- Rep-string SOLVED! Submitted.
- Nauticall bell
- Word wrap SOLVED! Submitted. (Thanks Marcus Risanger!)
- Fibonacci word fractal SOLVED! Submitted. (Thanks Antonio Marquez-Raygoza!)
The tasks that are not implemented can be found using:
url="http://rosettacode.org/wiki/Reports:Tasks_not_implemented_in_Mathematica";
html=Import[url,"XMLObject"];
pos=Position[html,XMLElement["div",{"class"->"mw-content-ltr","dir"->"ltr","lang"->"en"},___]];
pos=First[pos];
data=Extract[html,pos];
pos=Position[data,XMLElement["li",{},{XMLElement["a",{"shape"->"rect","href"->_,"title"->x_},{x_}]}]];
data=Extract[data,pos];
data=data[[All,-1,-1,2]];
data={"title","href"}/.#&/@%;
data[[All,2]]="http://rosettacode.org"<>#&/@data[[All,2]];
data=Hyperlink@@@data;
data//Length
data//Column
Happy solving!
P.S. If you solved a problem after reading this thread, please leave a comment ![]()
