Skip to content

Commit 76e8d32

Browse files
committed
explorationSupply
1 parent aac55c1 commit 76e8d32

File tree

3 files changed

+20
-1
lines changed

3 files changed

+20
-1
lines changed

6olJmJ/test.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import { assertEquals } from "asserts";
2+
import explorationSupply from "./index.ts";
3+
Deno.test("explorationSupply", () => {
4+
const station = [2, 7, 8, 10],
5+
pos = [4, 9],
6+
输出 = [0, 2];
7+
assertEquals(explorationSupply(station, pos), 输出);
8+
});
9+
Deno.test("explorationSupply", () => {
10+
const station = [2, 5, 8, 14, 17],
11+
pos = [1, 14, 11, 2],
12+
输出 = [0, 3, 2, 0];
13+
assertEquals(explorationSupply(station, pos), 输出);
14+
});

VLNEbD/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ export default function reContruct(head: ListNode | null): ListNode | null {
55
const pre = new ListNode(-1, head);
66
let cur: ListNode | null | undefined = pre;
77
while (cur) {
8-
//console.log(cur)
98
if (cur.next && cur.next.val % 2 === 0) {
109
cur.next = cur.next.next;
1110
} else {

deno.lock

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)