Skip to content

Commit 5986785

Browse files
notes in interfaces
1 parent 2dc45a9 commit 5986785

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

SortingArray/src/searchingArray/OrderedSymbolTable.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,19 @@ public interface OrderedSymbolTable< K extends Comparable<K>, V> extends SymbolT
77

88
K max();
99

10-
K floor(K key);
10+
K floor(K key); // largest key less than or equal to key
1111

12-
K ceiling(K key);
12+
K ceiling(K key); // smallest key greater than or equal to key
1313

14-
int rank(K key);
14+
int rank(K key); // number of keys less than key
1515

16-
K select(int rank);
16+
K select(int rank); // key of rank k
1717

1818
void deleteMin();
1919

2020
void deleteMax();
2121

22-
int size(K low, K high);
22+
int size(K low, K high); // number of keys in [lo..hi]
2323

2424
Iterable<K> keys(K low, K high);
2525

0 commit comments

Comments
 (0)