yeah actually i removed l from the outer loop though it had no effect and m just accumulates the words that are present in the dictionary but for cases like
l
m
valid_word(['a', 'bgkol', 'a', 'k'],'aakbgkolbgkol') valid_word(['ab', 'a', 'bc'],'abc')
it isn't working!
this is the code above its not passing for test cases like these:
print(valid_word(['a', 'bgkol', 'a', 'k'],'aakbgkolbgkol')) print(valid_word(['ab', 'a', 'bc'],'abc'))
kindly review it Thanks!
This comment is hidden because it contains spoiler information about the solution
Loading collection data...
yeah actually i removed
l
from the outer loop though it had no effect andm
just accumulates the words that are present in the dictionarybut for cases like
it isn't working!
this is the code above
its not passing for test cases like these:
kindly review it Thanks!
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution