Categories
Programming

99 Problems(3)

Find out whether a list is a palindrome.

(defn ispalindrome? [xs]
	(= xs (reverse xs)))
Categories
Programming

99 Problems(2)

Find the last but one element of a list

(def testlist [1 2 3])
(nth testlist (- (count testlist) 2))
Categories
Programming

99 Problems (1)

Find the last element of a list.

(def testlist [1 2 3])
(last testlist)
Categories
Life

Go Giver

Go-Giver is a nice little book which revolves around these 5 principles

1) The Law of Value: Your true worth is determined by how much more you give in value than you take in payment.
2) The Law of Compensation: Your income is determined by how many people you serve and how well you serve them.
3) The Law of Influence: Your influence is determined by how abundantly you place other people’s interests first.
4) The Law of Authenticity: The most valuable gift you have to offer is yourself.
5) The Law of Receptivity: The key to effective giving is to stay open to receiving.