Sequence Fibonacci

Hello!

To view this page you need Microsoft Silverlight 3 plug-in.
Silverlight will enable your browser to understand complex Rich Internet Applications.
After installing (~10 seconds), you will be able to view and execute live algorithms.

Click here to download the plugin directly from Microsoft (4 MB)
If you want to learn more about MS Silverlight, take a look at this Wikipedia article.
Output
type in the input above and click 'Execute'
the result will be outputted here
Related Algorithms
Discussion
1
Very cool. I fixed the title and removed the note you left about it.

However, I noticed that you are printing the output in every iteration. So if you enter a big number, each element will be printed by its self, which means the browser will be called N number of times (N is the number of elements). That's a lot of interoperability between the browser and your algorithm. A better approach would be to append the result to a string and once executed you print that string.

More importantly however, is that the output is a string and the code is not following Algorithmatic's code structure which to allow external calls. This means that your code cannot be reused in other future algorithms by other users. See "Algorithmatic Object" in the Reference Manual in the wiki. I suggest you return an array, which makes it much easier to consume the output.

Peace out!
26 months and 3 weeks ago by ANaimi
login to leave a comment
Version 1
Version 1 by Pavel
0
Version 2 by Pavel
0
Version 3 by Pavel
+5
Render elements of Fibonacci Sequence.
By Pavel
26 months and 3 weeks ago
up down

implementations

3 versions available

rated by

no users - list?

viewed by

6 users - list?

favorited by

0 users - list?

last activity

26 months and 3 weeks ago