Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/camirmas/recursion-problems


https://github.com/camirmas/recursion-problems

Last synced: 19 days ago
JSON representation

Awesome Lists containing this project

README

        

Define a recursive function that takes an argument n and prints the lyrics to 99 bottles of beer on the wall, starting with that number n

Define a recursive function that takes an argument n and returns the fibonacci value of that position. The fibonacci sequence is 0, 1, 1, 2, 3, 5, 8, 13, 21... So fib(5) should return 5 and fib(6) should return 8.

Define a recursive function that returns true if a string is a palindrome and false otherwise.

Get the JSON data from this Reddit post using an http gem: http://www.reddit.com/r/aww/comments/zzg3k/my_local_humane_society_posts_pictures_of_new/.json. Write code to print out the text of each comment in your terminal. Write code that counts the number of comments, as well.