You are viewing a single comment's thread. Return to all comments →
Thank you for pointing this out. Here is a c# version of boiler plate:
static void Main(string[] args) { int q = Convert.ToInt32(Console.ReadLine().Trim()); var queries = new int[q,2]; for (int i = 0; i < q; i++) { var nq = new int[2]; nq = Console.ReadLine().TrimEnd().Split(' ').ToList().Select(queriesTemp => Convert.ToInt32(queriesTemp)).ToArray(); queries[i, 0] = nq[0]; queries[i, 1] = nq[1]; } List<int> ans = freqQuery(queries); Console.WriteLine(String.Join("\n", ans)); }
Seems like cookies are disabled on this browser, please enable them to open this website
Frequency Queries
You are viewing a single comment's thread. Return to all comments →
Thank you for pointing this out. Here is a c# version of boiler plate: