Skip to content

Commit f679d9e

Browse files
refactor 432
1 parent ad57269 commit f679d9e

File tree

1 file changed

+0
-12
lines changed
  • src/main/java/com/fishercoder/solutions

1 file changed

+0
-12
lines changed

src/main/java/com/fishercoder/solutions/_432.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,6 @@
55
import java.util.Map;
66
import java.util.Set;
77

8-
/**
9-
* 432. All O`one Data Structure
10-
* Implement a data structure supporting the following operations:
11-
12-
1. Inc(Key) - Inserts a new key with value 1. Or increments an existing key by 1. Key is guaranteed to be a non-empty string.
13-
2. Dec(Key) - If Key's value is 1, remove it from the data structure. Otherwise decrements an existing key by 1. If the key does not exist, this function does nothing. Key is guaranteed to be a non-empty string.
14-
3. GetMaxKey() - Returns one of the keys with maximal value. If no element exists, return an empty string "".
15-
4. GetMinKey() - Returns one of the keys with minimal value. If no element exists, return an empty string "".
16-
17-
Challenge: Perform all these in O(1) time complexity.
18-
19-
*/
208
public class _432 {
219

2210
public static class Solution1 {

0 commit comments

Comments
 (0)