We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 53c97f2 commit 22b399cCopy full SHA for 22b399c
medium/array_min_jumps.test.js
@@ -10,4 +10,8 @@ describe('arrayMinJumps()', () => {
10
arrayMinJumps([1, 3, 6, 8, 2, 7, 1, 2, 1, 2, 6, 1, 2, 1, 2])
11
).toBe(4);
12
});
13
+
14
+ test('returns -1 if unable to reach end', () => {
15
+ expect(arrayMinJumps([1, 0, 0, 0, 3])).toBe(-1);
16
+ });
17
0 commit comments