how a polynomial such as 6x^6+4x^3-2x+10 can be represnted
by linked list?write an algorithm that reads such an polynomial
Answer / poojithap2
the polynomial contained in the coefficiant&exponant of x
6.0 4.0 -2.0 10.0
....... .....
6 3 1 0
...... ..... ..... ......
---> ---> ------> --->
...... ..... ..... .......
alg:
if empty list
if polynomial=NULL
then
when('zero polynamial')
return
[traverse list]
reepeat while polynomial!=NULL
set result=derivative of polynomial
write result
set polynomial=next node of polynomial
end loop
return
Is This Answer Correct ? | 4 Yes | 0 No |
Write the recursive c function to count the number of nodes present in a binary tree.
What is a data structure?
Which is better hashmap or hashtable?
What is a spanning tree?does the minimum spanning tree of a graph give the shortest distance between any 2 specified nodes?
Why use a tuple instead of a list?
What is stable sort example?
What is mergesort and hashtable?
What is map data structure?
State the demerits of linked representation of binary trees?
Define a full binary tree ?
What is dynamic array with example?
How many types of searching are there in data structure?