https://github.com/camirmas/recursion-problems
https://github.com/camirmas/recursion-problems
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/camirmas/recursion-problems
- Owner: camirmas
- Created: 2015-01-05T21:59:09.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-01-06T00:15:03.000Z (over 10 years ago)
- Last Synced: 2025-02-09T04:26:18.673Z (5 months ago)
- Language: Ruby
- Size: 117 KB
- Stars: 0
- Watchers: 3
- 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.