Compare Pastes

Differences between the pastes #216633 (01.09.2021 12:56) and #224672 (07.10.2021 01:47).
1
Your program should get two parameters from command line:
2
-string size N^2, that describes square matrix of characters N*N;
3
-string that describes given word.
4
5
The first string is converting to matrix using the following rule. String "QWEASDZXC" forms the matrix:
6
['Q','W','E',
7
 'A','S','D',
8
 'Z','X','C']
9
10
Yor program should print to the console the sequence of cells those build the given word.
11
Every next character of word can be placed just in the neightbor cell: on the top, on the bottom, on the left or on the right from the cell with previous character.
12
13
E.g. if it is given matrhix "QLGNAEKIRLRNGEAE" and word "KING", then sequence of cells will be [1,2]->[1,3]->[0,3]->[0,2]
14
1
Your program should get two parameters from command line:
2
-string size N^2, that describes square matrix of characters N*N;
3
-string that describes given word.
4
5
The first string is converting to matrix using the following rule. String "QWEASDZXC" forms the matrix:
6
['Q','W','E',
7
 'A','S','D',
8
 'Z','X','C']
9
10
Yor program should print to the console the sequence of cells those build the given word.
11
Every next character of word can be placed just in the neightbor cell: on the top, on the bottom, on the left or on the right from the cell with previous character.
12
13
E.g. if it is given matrhix "QLGNAEKIRLRNGEAE" and word "KING", then sequence of cells will be [1,2]->[1,3]->[0,3]->[0,2]
14