mirror of https://github.com/01-edu/public.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
147 lines
2.3 KiB
147 lines
2.3 KiB
2 years ago
|
##### Open the repository of the project and check the submitted files
|
||
|
|
||
|
###### Can you confirm that the `"crosswordSolver.js"` file is present and you can run the `"main.js"` provided?
|
||
|
|
||
|
##### Try running the function with the arguments:
|
||
|
```js
|
||
|
const puzzle = '2001\n0..0\n1000\n0..0'
|
||
|
const words = ['casa', 'alan', 'ciao', 'anta']
|
||
|
```
|
||
|
|
||
|
```
|
||
|
casa
|
||
|
i..l
|
||
|
anta
|
||
|
o..n
|
||
|
```
|
||
|
|
||
|
###### Does the function returns the value above?
|
||
|
|
||
|
##### Try running the function with the arguments:
|
||
|
```js
|
||
|
const puzzle =
|
||
|
`...1...........
|
||
|
..1000001000...
|
||
|
...0....0......
|
||
|
.1......0...1..
|
||
|
.0....100000000
|
||
|
100000..0...0..
|
||
|
.0.....1001000.
|
||
|
.0.1....0.0....
|
||
|
.10000000.0....
|
||
|
.0.0......0....
|
||
|
.0.0.....100...
|
||
|
...0......0....
|
||
|
..........0....`
|
||
|
const words = [
|
||
|
'sun',
|
||
|
'sunglasses',
|
||
|
'suncream',
|
||
|
'swimming',
|
||
|
'bikini',
|
||
|
'beach',
|
||
|
'icecream',
|
||
|
'tan',
|
||
|
'deckchair',
|
||
|
'sand',
|
||
|
'seaside',
|
||
|
'sandals'
|
||
|
]
|
||
|
```
|
||
|
|
||
|
```
|
||
|
...s...........
|
||
|
..sunglasses...
|
||
|
...n....u......
|
||
|
.s......n...s..
|
||
|
.w....deckchair
|
||
|
bikini..r...n..
|
||
|
.m.....seaside.
|
||
|
.m.b....a.a....
|
||
|
.icecream.n....
|
||
|
.n.a......d....
|
||
|
.g.c.....tan...
|
||
|
...h......l....
|
||
|
..........s....
|
||
|
```
|
||
|
|
||
|
###### Does the function returns the value above?
|
||
|
|
||
|
##### Try running the function with the arguments:
|
||
|
```js
|
||
|
const puzzle = '2001\n0..0\n1000\n0..0'
|
||
|
const words = ['casa', 'casa', 'ciao', 'anta']
|
||
|
```
|
||
|
|
||
|
```
|
||
|
Error
|
||
|
```
|
||
|
|
||
|
###### Does the function returns the value above?
|
||
|
|
||
|
##### Try running the function with the arguments:
|
||
|
```js
|
||
|
const puzzle = '0001\n0..0\n3000\n0..0'
|
||
|
const words = ['casa', 'alan', 'ciao', 'anta']
|
||
|
```
|
||
|
|
||
|
```
|
||
|
Error
|
||
|
```
|
||
|
|
||
|
###### Does the function returns the value above?
|
||
|
|
||
|
##### Try running the function with the arguments:
|
||
|
```js
|
||
|
const puzzle = '2001\n0..0\n1000\n0..0'
|
||
|
const words = ['casa', 'casa', 'ciao', 'anta']
|
||
|
```
|
||
|
|
||
|
```
|
||
|
Error
|
||
|
```
|
||
|
|
||
|
###### Does the function returns the value above?
|
||
|
|
||
|
##### Try running the function with the arguments:
|
||
|
```js
|
||
|
const puzzle = ''
|
||
|
const words = ['casa', 'alan', 'ciao', 'anta']
|
||
|
```
|
||
|
|
||
|
```
|
||
|
Error
|
||
|
```
|
||
|
|
||
|
###### Does the function returns the value above?
|
||
|
|
||
|
##### Try running the function with the arguments:
|
||
|
```js
|
||
|
const puzzle = 123
|
||
|
const words = ['casa', 'alan', 'ciao', 'anta']
|
||
|
```
|
||
|
|
||
|
```
|
||
|
Error
|
||
|
```
|
||
|
|
||
|
###### Does the function returns the value above?
|
||
|
|
||
|
##### Try running the function with the arguments:
|
||
|
```js
|
||
|
const puzzle = ''
|
||
|
const words = 123
|
||
|
```
|
||
|
|
||
|
```
|
||
|
Error
|
||
|
```
|
||
|
|
||
|
###### Does the function returns the value above?
|
||
|
|
||
|
#### Bonus
|
||
|
|
||
|
###### Visualizer
|
||
|
|
||
|
###### Performance / Algorithm used to solve it
|