-
Notifications
You must be signed in to change notification settings - Fork 0
/
gridSearch.js
31 lines (17 loc) · 869 Bytes
/
gridSearch.js
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
var gridI = "7283455864\n6731158619\n8988242643\n3830589324\n2229505813\n5633845374\n6473530293\n7053106601\n0834282956\n4607924137";
var searchI = "9505\n3845\n3530"
var gridII = "400453592126560\n114213133098692\n474386082879648\n522356951189169\n887109450487496\n252802633388782\n502771484966748\n075975207693780\n511799789562806\n404007454272504\n549043809916080\n962410809534811\n445893523733475\n768705303214174\n990629270887160";
var searchII = "99\n99";
var gridIII = "123412\n561212\n123612\n781234";
var searchIII = "12\n34";
searchI = searchI.split("\n");
gridI = gridI.split("\n");
searchII = searchII.split("\n");
gridII = gridII.split("\n");
searchIII = searchIII.split("\n");
gridIII = gridIII.split("\n");
function gridSearch(grid, search) {
var searchH = search.length;
var searchW = search[0].width;
}
gridSearch(gridIII, searchIII);