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
- Data Structures
- Arrays
- Dynamic Array
- Discussions
Dynamic Array
Dynamic Array
Sort by
recency
|
1989 Discussions
|
Please Login in order to post a comment
function dynamicArray(n, queries) { // Write your code here let arr = Array.from({ length: n }, () => []); let lastAnswer = 0; let res = [];
}
Here is my c++ solution, you can watch the explanation here : https://youtu.be/MYdQxgmJ4Sk
Using JAVA
This is easy problem but I enjoyed to solve,
}
I've read the prompt multiple times and have no understanding of what I'm supposed to do here...