LeetCode 981. Time Based Key-Value Store - Interview Prep Ep 107

  Рет қаралды 3,892

Fisher Coder

Fisher Coder

Күн бұрын

Пікірлер: 6
@yitingg7942
@yitingg7942 3 жыл бұрын
Hi Fisher, the problem is what if you can't use this floorKey API ? Then what would you do ?
@fkslfk
@fkslfk 3 жыл бұрын
I guess we could switch to the approach 1 which is using the binary search
@caminante4222
@caminante4222 3 жыл бұрын
You should have used binary search for languages with no tree map
@mannana8550
@mannana8550 3 жыл бұрын
F'ed this up on Amazon SDE II :/
@pavanpandya3671
@pavanpandya3671 4 ай бұрын
java.lang.NullPointerException: Cannot invoke "java.util.TreeMap.floorKey(Object)" because "" is null at line 19, TimeMap.get at line 71, __Driver__.__helperSelectMethod__ at line 91, __Driver__.__helper__ at line 112, __Driver__.main Can you help me resolve this ?
@LongNguyenThanhLe
@LongNguyenThanhLe 19 күн бұрын
add this line at the beginning of the get method: if(!map.containsKey(key)) return "";
Time Based Key-Value Store - Leetcode 981 - Python
17:16
NeetCode
Рет қаралды 111 М.
How many people are in the changing room? #devil #lilith #funny #shorts
00:39
Time Based Key Value Store | Netflix Coding Question | Binary Search
14:21
Beginners Should Think Differently When Writing Golang
11:35
Anthony GG
Рет қаралды 124 М.
Time Based Key-Value Store | Leetcode 981
21:13
Knowledge Center
Рет қаралды 1,7 М.
LeetCode 242. Valid Anagram - Interview Prep Ep 135
16:00
Fisher Coder
Рет қаралды 2,1 М.
Medium Google Coding Interview With Ben Awad
51:27
Clément Mihailescu
Рет қаралды 1,3 МЛН
[Java] Leetcode 981. Time Based Key-Value Store [Binary Search #7]
14:04
Google Coding Interview With A Competitive Programmer
54:17
Clément Mihailescu
Рет қаралды 2,5 МЛН
Leetcode 981 Time Based Key-Value Store |  Coding Decoded SDE Sheet
9:09