Solution 1: accepted 10%
Time: O(n)
Still get very bad performance (10%), try to replace syntax.
Alternative: without copy (slower)
Solution 2: accepted 17ms 25%
I think the performance varies on server condition…
|
|
Time: O(n)
Still get very bad performance (10%), try to replace syntax.
Alternative: without copy (slower)
I think the performance varies on server condition…
|
|