We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Append and Delete
Append and Delete
Sort by
recency
|
1426 Discussions
|
Please Login in order to post a comment
Simple program using single for loop and east to understand
def appendAndDelete(s, t, k):
Here is my O(k) c++ solution, you can watch the explanation here : https://youtu.be/8ZOmXfo6k0Y
My python solution:
Whoever wrote it wrote it very well.
TestCase 7 is not correct there should be K = 2 instead of K= 20