Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/camirmas/recursion-problems
https://github.com/camirmas/recursion-problems
Last synced: 19 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/camirmas/recursion-problems
- Owner: camirmas
- Created: 2015-01-05T21:59:09.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-01-06T00:15:03.000Z (almost 10 years ago)
- Last Synced: 2023-02-27T03:01:46.820Z (over 1 year ago)
- Language: Ruby
- Size: 117 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.