-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTimeMap.java
37 lines (25 loc) · 846 Bytes
/
TimeMap.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package com.leetcode.algorithms.medium.binarysearch;
import java.util.Scanner;
public class TimeMap {
/** Initialize your data structure here. */
public TimeMap() {
}
public void set(String key, String value, int timestamp) {
}
public String get(String key, int timestamp) {
return "";
}
public static void main(String...strings) {
// Input
Scanner scanner = new Scanner(System.in);
String key = scanner.next();
String value = scanner.next();
int timestamp = scanner.nextInt();
// Your TimeMap object will be instantiated and called as such:
TimeMap obj = new TimeMap();
obj.set(key, value, timestamp);
String param_2 = obj.get(key, timestamp);
System.out.print(param_2);
scanner.close();
}
}