Search
⌘K

Leetcode 3642. Find Books with Polarized Opinions

Identify books by joining books with reading_sessions and grouping by book to compute highest and lowest ratings (rating spread), total sessions, and count of extreme ratings (≤2 or ≥4); then filter for ≥5 sessions, at least one ≥4 and one ≤2, and polarization score (extreme_count / total_sessions) ≥ 0.6. Return books with their spread and polarization score ordered by score descending then title descending.


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Comments

Your account is free and you can post anonymously if you choose.