solve this problem and post answer in comment
Anonymous User
98

Write a program to find the number of possibilities to form the word elephant from a individual elements by their surrounding elements in (n x n) matrix filled with characters.

Sample Input:
h a e p
e e p h
n l t n
h a l o
Sample Output:
Number of possibility : 3
h a e
e e p
n l t

a e p
e p h
l t n

e e p
n l t
h a l

Comments (0)