This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Problem no 6 recursion | |
class Algo | |
def count_binary_count_rec(n) | |
if n == 1 | |
return 2 ** n | |
elsif n.zero? | |
return 1 | |
else | |
count_binary_count_rec(n-1) + count_binary_count_rec(n-2) | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Installing elasticsearch | |
1. Visit https://www.elastic.co/downloads | |
2. Download zip version. Unzip it. | |
3. Run bin/elasticsearch | |
4. Visit http://localhost:9200/. If it return status 200, it is succesfully installed. | |
Elasticsearch uses JavaScript Object Notation, or JSON, as the serialization format for documents. JSON serialization is | |
supported by most programming languages, and has become the standard format used by the NoSQL movement. It is simple, | |
concise, and easy to read. |