Que.What is the time complexity to count the number of elements in the linked list?a.O(n)b.O(1)c.O(n2)d.O(logn)
SIKSHAPATH Latest Questions
Q.Inserting an item into the stack when stack is not full is called ___ Operation and deletion of item form the stack, when stack is not empty is called ___ operation. a.push, pop b.pop, push c.insert, delete d.delete, insert
Que.Representation of data structure in memory is known as: a. Recursive b. Storage Structure c. File Structure d. Abstract data type
Q._ is NOT the component of data structure.a. Operationsb. Storage Structuresc. Algorithmsd. None of the above
If the address of A[1][1] and A[2][1] are 1000 and 1010 respectively and each element occupies 2 bytes then the array has been stored in _________ order. a. column major b. matix major c. row major d. none of the above
Find the optimal solution for the following fractional Knapsack problem. n=4, m = 60, W={40, 10, 20, 24} and P={280, 100, 120, 120}