Skip to content

Commit 06db744

Browse files
author
Gonzalo Diaz
committed
[Hacker Rank] Interview Preparation Kit: Dictionaries and Hashmaps: Frequency Queries. Basic test cases added.
1 parent 71cd7a6 commit 06db744

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

src/hackerrank/interview_preparation_kit/dictionaries_and_hashmaps/frequency_queries.test.js

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,32 @@ const TEST_CASES = [
1717
[3, 2]
1818
],
1919
expected: [0, 1]
20+
},
21+
{
22+
title: 'Sample Test Case 1',
23+
input: [
24+
[3, 4],
25+
[2, 1003],
26+
[1, 16],
27+
[3, 1]
28+
],
29+
expected: [0, 1]
30+
},
31+
{
32+
title: 'Sample Test Case 2',
33+
input: [
34+
[1, 3],
35+
[2, 3],
36+
[3, 2],
37+
[1, 4],
38+
[1, 5],
39+
[1, 5],
40+
[1, 4],
41+
[3, 2],
42+
[2, 4],
43+
[3, 2]
44+
],
45+
expected: [0, 1, 1]
2046
}
2147
];
2248

0 commit comments

Comments
 (0)