We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
The problem is find the index j of array k_i. i & j are pair values in q. You have to store the input in 2D array for n_arr & q_arr. My solution using pointers to create dynamic arrays and store values in these arrays.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Variable Sized Arrays
You are viewing a single comment's thread. Return to all comments →
The problem is find the index j of array k_i. i & j are pair values in q. You have to store the input in 2D array for n_arr & q_arr. My solution using pointers to create dynamic arrays and store values in these arrays.