Skip to content

Commit ba13f48

Browse files
committed
Problem 3.8 TADM
1 parent d05340c commit ba13f48

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

  • java8/src/main/java/com/shekhargulati/ninetynine_problems/java8/_00_random/tadm/ch03

java8/src/main/java/com/shekhargulati/ninetynine_problems/java8/_00_random/tadm/ch03/Problem3_8.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
import java.util.Optional;
44

5+
/**
6+
* Write a data structure that supports following operations.
7+
* <p>
8+
* insert(x,T) – Insert item x into the set T
9+
* delete(k,T) – Delete the kth smallest element from T.
10+
* member(x,T) – Return true iff x ∈ T .
11+
* All operations must take O(log n) time on an n-element set.
12+
*/
513
public class Problem3_8 {
614

715
public static void main(String[] args) {

0 commit comments

Comments
 (0)