Problem Description

Two JSON values are given on two lines. Check deep equality: primitives compare normally (NaN does not appear in JSON), arrays compare by order, objects compare by keys and values ignoring key order. Print YES or NO.

Input Format

Line1: JSON A. Line2: JSON B.

Output Format

YES or NO.

Sample Test Case

Input:
{"a":[1,2],"b":null} {"b":null,"a":[1,2]}
Output:
YES

Constraints

Total nodes up to 2e5.

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next