PokeVideoPlayer v23.9-app.js-020924_
0143ab93_videojs8_1563605_YT_2d24ba15 licensed under gpl3-or-later
Views : 260
Genre: Education
License: Standard YouTube License
Uploaded At Nov 13, 2024 ^^
warning: returnyoutubedislikes may not be accurate, this is just an estiment ehe :3
Rating : 5 (0/10 LTDR)
100.00% of the users lieked the video!!
0.00% of the users dislieked the video!!
User score: 100.00- Masterpiece Video
RYD date created : 2024-11-16T08:27:08.73141Z
See in json
@lesscomplex6315
3 days ago
More efficient solution:
k = len(list) - 1
i = 0
while i < k:
if list[i] == 0:
while list[k] == 0 and k != i:
k = k - 1
list[i], list[k] = list[k], list[i]
i = i + 1
The reason that this is faster because under the hood remove and append can be o(n) making the solution in the video o(n^2)
|