Ranges Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

Is binary search is possilble in Range?

A

yes. bsearch method

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the methods to check if a value is present in a range?

A

member?,include?cover?

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How to display the inbetween values in a range?

A

entries, to_a

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

what is the meaning of s…e(triple dot) in a range?

A

the last value in the range will get ingnored

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

difference between last and max methods

A
  1. .10.last= “10”

1. ..10.max = “9”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly