SP20644 ZQUERY - Zero Query
Description
[English](/problems/ZQUERY/en) [Vietnamese](/problems/ZQUERY/vn)Given an array having **N** elements, each element is either **-1** or **1**.
You have **M** queries, each query has two numbers **L** and **R**, you have to answer the length of the longest subarray in range **L** to **R** (inclusive) that its sum is equal to 0.
Input Format
N/A
Output Format
N/A