Problem Description

Given a JSON object, create canonical JSON by sorting keys recursively, then compute 32-bit FNV-1a hash of that canonical string. Print hash as unsigned integer.

Input Format

One line JSON object.

Output Format

One integer hash.

Sample Test Case

Input:
{"b":1,"a":2}
Output:
1335831723

Constraints

Total keys up to 2e5.

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next