This is the solution to the problem found in the algorithm domain. This solution is made using Python.
z=[[0 for j in range(len(y)+1)] for i in range(len(x)+1)]
for i, a in enumerate(x):
for j, b in enumerate(y):
if a == b:
z[i+1][j+1] = z[i][j] + 1
x = raw_input()
y = raw_input()
Got Bugs, Suggestions, Drop them here !
Latest posts by Bikash Panda (see all)
- Firmata protocol with Raspberry Pi and Arduino - September 13, 2017
- IOT:Power outlet controlled from internet using WeMOS - August 9, 2017
- OSMC on Raspberry PI with Setup and Control using Android App - July 7, 2017