Took a few seconds to sink in but damn, this is a perfect example of solving the problem that exists vs solving the problem you think exists.
No. Your solution is not O(len(arr1) + len(arr2)).
=)) You should be a data scientist now =))
For faster - O(len(arr1) + len(arr2)) - solution, you could see mine.
Bro, so dope!!!
Really nice :)!!
Guys, I get it now, you guys, it's like my magnum opus. None of the all my mental diarrhea, that I occasionally dare to call 'code', will be better than this. Nothing will exceed that. This is my 5th symphony.
And since I am about to get laid off from my current dead end job, perhaps someone out there might want to hire me? I prefer highload stuff, cause, as you can see above, I know how to optimize things.
Microsoft? Amazon? Hellooo.
You can find me in a cardboard box under the bridge. Or github. Now if you excuse me, I'll go back to looking for food in those trash bins.
Sweet code and runtime is impressive for massive strings !
Omfg!!!! Is just beutiful :,,v
I like it!
god damn this it the best solution