Relation Reflexive Check

Computer Mathematics Medium 2 views
Back to Questions
Next Set Union Size Easy N

Problem Description

Given n and a list of pairs (a,b), check if relation is reflexive.

Input Format

n m then m pairs.

Output Format

YES or NO.

Sample Test Case

Input:
3 2 1 1 2 2
Output:
NO

Constraints

1

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Next