Leetcode Problem 2026. Low-Quality Problems
2026. Low-Quality Problems
AI Mock Interview
Leetcode Solutions
Calculating Low-Quality Problems Based on Like Percentage
Solution Idea
Query Steps
Code Implementation
Calculate the total number of votes for each problem by adding the likes and dislikes.
Calculate the like percentage by dividing the likes by the total number of votes and multiplying by 100.
Use a
WHERE
clause to filter out problems where the like percentage is strictly less than 60%.
Order the final result by
problem_id
in ascending order.
erDiagram Problems { int problem_id PK int likes int dislikes }
Using Ratio Comparison to Identify Low-Quality Problems
Ask Question
Programming Language
Purpose:
General Question
Debug My Code
image/screenshot of info
(optional)
[+]
Full Screen
Loading...
Get Answer
Suggested Answer
Answer
Full Screen
Copy Answer Code
Loading...