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
|
1452 Discussions
|
Please Login in order to post a comment
The following include two solutions
The logic is same TC -> O(n * m) where n is rows and m is columns
include
include
include
include
include
using namespace std;
int main() { int n , q ; cin >> n >> q ; vector> arr(n);
}
Here is Variable sized arrays solution in c++ - https://programmingoneonone.com/hackerrank-variable-sized-arrays-solution-in-cpp.html
I didn't really did a proper research about how to define the size of the vectors so I ended by making this code