Leetcode Problem 2026. Low-Quality Problems

2026. Low-Quality Problems

Leetcode Solutions

Calculating Low-Quality Problems Based on Like Percentage

  1. Calculate the total number of votes for each problem by adding the likes and dislikes.
  2. Calculate the like percentage by dividing the likes by the total number of votes and multiplying by 100.
  3. Use a WHERE clause to filter out problems where the like percentage is strictly less than 60%.
  4. 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
image/screenshot of info(optional)
Full Screen
Loading...

Suggested Answer

Answer
Full Screen
Copy Answer Code
Loading...