Ranges Flashcards
1
Q
Is binary search is possilble in Range?
A
yes. bsearch method
2
Q
What are the methods to check if a value is present in a range?
A
member?,include?cover?
3
Q
How to display the inbetween values in a range?
A
entries, to_a
4
Q
what is the meaning of s…e(triple dot) in a range?
A
the last value in the range will get ingnored
5
Q
difference between last and max methods
A
- .10.last= “10”
1. ..10.max = “9”