forked from root/public
![primo.niccolo@gmail.com](/git/assets/img/avatar_default.png)
![Niccolò Primo](/git/assets/img/avatar_default.png)
1 changed files with 146 additions and 0 deletions
@ -0,0 +1,146 @@ |
|||||||
|
##### 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 |
Loading…
Reference in new issue