# Rosetta Code Challenge & Wolfram Language

**URL:** <https://community.wolfram.com/t/rosetta-code-challenge-wolfram-language/2321>\
**Category:** Ideas\
**Tags:** fun-and-play, mathematica\
**Created:** [June 4, 2014, 8:27pm UTC](https://community.wolfram.com/t/rosetta-code-challenge-wolfram-language/2321 "2014-06-04T20:27:52Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![sghuisman](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/sghuisman/32/27850_2.png) [@sghuisman](https://community.wolfram.com/u/sghuisman)\
**Post date:** [June 4, 2014, 8:27pm UTC](https://community.wolfram.com/t/rosetta-code-challenge-wolfram-language/2321/1 "2014-06-04T20:27:52Z")

</div>

Following the very nice blogpost on the: [Wolfram Blog](http://blog.wolfram.com/2014/06/04/how-the-wolfram-language-measures-up/) 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](http://rosettacode.org/wiki/Category:Mathematica).

The unsolved tasks for Mathematica can be found [here](http://rosettacode.org/wiki/Reports:Tasks_not_implemented_in_Mathematica). 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:

- [ABC Problem](http://rosettacode.org/wiki/ABC_Problem)
- [Longest increasing subsequence](http://rosettacode.org/wiki/Longest_increasing_subsequence)
- [Ludic numbers](http://rosettacode.org/wiki/Ludic_numbers)
- [Maximum triangle path sum](http://rosettacode.org/wiki/Maximum_triangle_path_sum)
- [Zebra Puzzle](http://rosettacode.org/wiki/Zebra_puzzle)

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](http://rosettacode.org/wiki/Parse_an_IP_Address)
- [Rep-string](http://rosettacode.org/wiki/Rep-string) SOLVED! Submitted.
- [Nauticall bell](http://rosettacode.org/wiki/Nautical_bell)
- [Word wrap](http://rosettacode.org/wiki/Word_wrap) SOLVED! Submitted. (Thanks Marcus Risanger!)
- [Fibonacci word fractal](http://rosettacode.org/wiki/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 🙂

---

_[View the full topic](https://community.wolfram.com/t/rosetta-code-challenge-wolfram-language/2321)._
