Skip to content

Practice Not Boring Movies

Read the task, work through the examples, and check your approach against the constraints. Use the original LeetCode task for coding and submissions.

Easy#620
LeetCode Problem

Not Boring Movies

Problem Statement

Tables: Cinema(id INT, movie VARCHAR, description VARCHAR, rating FLOAT). Cinema.id is unique. Ratings have two decimal places and lie from 0 through 10. Return all movie columns for odd ids whose description is not boring. Order by rating descending.

Source: Not Boring Movies on LeetCode. Use the original task for its coding environment and submissions.

Examples

# Example 1

Input
Cinema table: +----+------------+-------------+--------+ | id | movie      | description | rating | +----+------------+-------------+--------+ | 1  | War        | great 3D    | 8.9    | | 2  | Science    | fiction     | 8.5    | | 3  | irish      | boring      | 6.2    | | 4  | Ice song   | Fantacy     | 8.6    | | 5  | House card | Interesting | 9.1    | +----+------------+-------------+--------+
Output
+----+------------+-------------+--------+ | id | movie      | description | rating | +----+------------+-------------+--------+ | 5  | House card | Interesting | 9.1    | | 1  | War        | great 3D    | 8.9    | +----+------------+-------------+--------+

Related LeetCode Problems

Practice more problems similar to Not Boring Movies.

Review your practice with PhantomCodeAI

After trying the problem yourself, use the app to discuss your approach, complexity, and edge cases.