I read the manual and found out that crope is just a wrapper for rope or similar.
Learned something new. Appreciate the fact that you called out your unique implementation in the comments, would have remained unware of Rope other wise
Thanks
Lone Coder
I think you are lucky β¦
My solution with same approach is not getting 100 and even I used same approach during contest, I got 50 only.
My Solution CodeChef: Practical coding for everyone
@gdisastery1 What i found is βropeβ is taking more time(approx double) than simple std::string insert/substr based implementation. why??
String based @ CodeChef: Practical coding for everyone ,
rope based @ CodeChef: Practical coding for everyone
Use this to generate a test case: X1kXHB - Online Python Interpreter & Debugging Tool - Ideone.com with Python 2.7
On my computer, the std::string version is taking about ~2.5 seconds and the rope version only ~0.3 seconds.