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)
- OSMC on Raspberry PI with Setup and Control using Android App - July 7, 2017
- DHT12 Interfacing with Raspberry Pi using Pi4J - June 19, 2017
- Send data using MQTT from Raspberry Pi with JAVA - June 12, 2017