Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Very fast and smart solution with only len(s1) * len(s2) + len(s1) iterations. Great job!
Не понятно, что желтки тут написали, но видимо, что-то плохое. И вроде как лучше использовать цикл
for
.Очередное подтверждение приметы: "Если вы решаете проблему через regex, то теперь у вас две проблемы".
In case of
strlen(s) < sz || sz <= 0
you return static string which cannot befree
d. In other cases you return allocated string. This requires from caller additional checks whether to free the returned string or not, so it is not very convenient.This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
非常惊艳的想法
性能比字符串处理差一个数量级
more spoiler flags... x/
This comment is hidden because it contains spoiler information about the solution
add the below codes to the first line of LCS function:
这是一种极其巧妙的方法,当然也只是节省了代码,性能上估计很堪忧。而且可扩展性方面堪忧。