Skip to content

Commit 2a9c17f

Browse files
committed
Starting hackerrank algo
1 parent 58f5ac7 commit 2a9c17f

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#!/bin/bash
2+
3+
echo "> Insert T"; read T
4+
for (( i=0; i < T ; i=$i+1 )); do
5+
echo "> Insert R and C"
6+
read RC
7+
R=($RC)[0]
8+
C=($RC)[1]
9+
10+
G=()
11+
12+
echo "Insert the Grid"
13+
14+
for (( k = 0; k < R; k++ )); do
15+
read line
16+
G=(${G[@]} ${line})
17+
done
18+
19+
P=()
20+
echo "Insert the pattern"
21+
22+
for (( k = 0; k < count; k++ )); do
23+
read line
24+
P=(${G[@]} ${line})
25+
done
26+
27+
28+
done
29+
30+
31+
32+

0 commit comments

Comments
 (0)