Questions: 1 680

Answers by our Experts: 1 680

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

Write a menu driven program to perform the following operations in a header linked list by using suitable user defined functions for each case. The head node keeps the count of the total number of nodes in the list. The data node keeps the student information: Name, Roll No, CGPA, Address_City, Branch.


1. Create

2. Display student information

3. Display the total number of nodes (in O(1) time)

4. Display the student's details belonging to a particular branch

5. Display the student's details securing > 7.5 CGPA and belonging to a given branch.


An array is type of data structure that stores the elements in contiguous block of memory, create an array with name "list" and size of an array is N. your task is to print the array elements in an reverse order.

list=[1,2,3,4,5]

output 5,4,3,2,1

Note: use function concept to process the array elements and print it in the reverse order.

Reverse array has the following parameter

int list[n]

return int
an ecommerce website wishes to find the lucky customer who will be eligible for full value cashback. for this purpose, a number n is fed to the system. it will return another number that is calculated by an algorithm. in an algorithm, a sequence is generated, in which each number is the sum of the two preceding numbers. initially, the sequence will have two 1's in it. the system will return the nth number from the generated sequence which is treated as the order id. the lucky customer will be the one who has placed that order. write an algorithm to help the website find the lucky customer

Write a program to perform addition and multiplication for given two sparse polynomials. Create a node for each term in the given polynomial.


2. Write a program to perform transpose for a given sparse matrix. ( Row major order)




Note: The last date for submission is 03-9-2021


Note: Implementation can be done either in C or C++ for questions 1 and 2.


Harry loves numbers in the range [m1, m2] (m1 and m2 included). carry decides to gift harry an array of numbers for his birthday. harry wants to find the number of pairs of indices [l, r] for which the sum of all the elements in the range [l, r] lies between m1 and m2.  

  1. What if the numbers could be negative as well? Can you think of an O(nlogn) solution in this case? (Hint: use sorting)  




Harry loves numbers in the range [m1, m2] (m1 and m2 included). carry decides to gift harry an array of numbers for his birthday. harry wants to find the number of pairs of indices [l, r] for which the sum of all the elements in the range [l, r] lies between m1 and m2.  

Now improvise this algorithm, assuming all numbers are positive integers. 



Write a program to copy the contents of one stack to another stack in the same order without using any extra data structure.



Implement PUSH, POP, and TRAVERSE operations on a stack using linked list.


Implement PUSH, POP, and TRAVERSE operations on a stack using array.



Implement polynomial addition and multiplication using linked lists.


LATEST TUTORIALS
APPROVED BY CLIENTS