/Trendin

We all know tik tok uses a trending algorithm, I tried to crreate it using javascript

Primary LanguageJavaScript

Trending Algorithm

Algorithm for finding trending values ​​for an Array of videos

Input

Array of video Info: Each video must contains views, comments, votes and uploadTime

Output

Array of video Info + trendingValue on each video object