Skip to content

Practice Biggest Single Number

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

Easy#619
LeetCode Problem

Biggest Single Number

Problem Statement

Tables: MyNumbers(num INT). MyNumbers permits duplicate rows and has no primary key. Return num containing the largest value occurring exactly once. If no value occurs once, return one null result. Compute frequencies before finding the maximum qualifying value.

Source: Biggest Single Number on LeetCode. Use the original task for its coding environment and submissions.

Examples

# Example 1

Input
MyNumbers table: +-----+ | num | +-----+ | 8   | | 8   | | 3   | | 3   | | 1   | | 4   | | 5   | | 6   | +-----+
Output
+-----+ | num | +-----+ | 6   | +-----+

# Example 2

Input
MyNumbers table: +-----+ | num | +-----+ | 8   | | 8   | | 7   | | 7   | | 3   | | 3   | | 3   | +-----+
Output
+------+ | num  | +------+ | null | +------+

Related LeetCode Problems

Practice more problems similar to Biggest Single Number.

Review your practice with PhantomCodeAI

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