Leaqio.com
Aditya Verma from patreon
Aditya Verma patreon

LC 1048 Longest String Chain

🕑 Added 2020-06-14 12:38:00 +0000 UTC
LC 1048 Longest String Chain
LC 1048 Longest String Chain
LC 1048 Longest String Chain

Comments

Sumit Keshav

While comparing the strings 'a' and 's' in the isPredecessor(), can we use LCS(a,s) and compare it with a itself, if they are same, and they differ by one length, then we may return true? Will this increase time or space complextiy?


More Creators