99 problems

Here I show sample scala usage by solving some of the 99 scala problems given here

1. Find the last element of a list.
2. Find the last but one element of a list.
3. Find the Kth element of a list.
4. Find the number of elements in a list.
5. Reverse a list.
6. Find if a list is a palindrome.
7. Flatten a list.

The answers and original questions are provided under the Creative Commons Attribution-Share Alike license – http://creativecommons.org/licenses/by-sa/3.0/us/


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s