deno.land / x / masx200_leetcode_test@10.6.5 / cells-with-odd-values-in-a-matrix / test.ts

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import { assertEquals } from "../deps.ts";import oddCells from "./index.ts";
Deno.test("cells-with-odd-values-in-a-matrix", () => { assertEquals( 6, oddCells(2, 3, [ [0, 1], [1, 1], ]), ); assertEquals( 0, oddCells(2, 2, [ [1, 1], [0, 0], ]), ); assertEquals( 659, oddCells(41, 38, [ [38, 33], [37, 24], [33, 6], [15, 0], [13, 22], [1, 13], [12, 8], [20, 4], [30, 9], [21, 0], [35, 29], [21, 20], [36, 24], [40, 16], [3, 24], [32, 6], [19, 28], [1, 13], [30, 19], [28, 20], [28, 2], ]), );});
masx200_leetcode_test
leetcode题解和一些测试工具
DocumentationDocumentation
GitHub Repositorymasx200/leetcode-test
GitHub Stars
4

Version Info

Tagged at
4 months ago