// C > Arrays and Strings > Dynamic Array in C // // // https://www.hackerrank.com/challenges/dynamic-array-in-c/problem // #include <stdio.h> #include <stdlib.h> /* * This stores the total number of books in each shelf. */ int* total_number_of_books; /* * This stores ...
/** * https://www.hackerrank.com/challenges/dynamic-array/problem * */ class DynamicArray { var lastAnswer = 0 var answerList: ArrayList<Int>? = null var seqs: ArrayList<ArrayList<Int>>? = null fun dynamicArray(n: Int, queries: Array<Array<Int>>): Array<Int> { seqs = ArrayList<...