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.
- Prepare
- C++
- Introduction
- Variable Sized Arrays
- Discussions
Variable Sized Arrays
Variable Sized Arrays
Sort by
recency
|
1457 Discussions
|
Please Login in order to post a comment
Let me explain the question for you.
INPUT:
then you have q lines of queries i, j i = index of the array in the outer vector j = index of the inner array in i
Task: for each query, print the value at arr[ i ] [ j ].
Hence the problem known as variable sized array.
I would recommend to understand the code but not copy paste it in your editor. once you understand the code then dry run it and then write the algorithm of it in your copy and then try yourself to solve the question here. that is the best way to do it.
If you like it then upvote . It is better for the coding community