RE: RE: Voting and Pseudo-Randomness | SponsorBlock | YouTube Sponsorship Segment Blocker
You are viewing a single comment's thread from:

RE: Voting and Pseudo-Randomness | SponsorBlock | YouTube Sponsorship Segment Blocker

Words
120
Reading
1 min
7y

Thank you for your contribution. Interesting project!

  1. has this been on the chrome web store already?
  2. your first algorithm complexity is O(N^2), can you improve this Similar Sponsor by sorting your sponsors by start time - which takes O(NlogN) then do the check in O(N)? At least, you can improve the inner loop by for (var j = i + 1 instead of j = 0.
  3. You might use hash table or just set to remove the duplicates, such as ES6 [...new Set(Array)] see this

Your contribution has been evaluated according to Utopian policies and guidelines, as well as a predefined set of questions pertaining to the category.

To view those questions and the relevant answers related to your post, click here.


Need help? Chat with us on Discord.

[utopian-moderator]