Question: Data Structure by Java . help me quickly please .. consider a link list 16-->5--7-->4-->-->12-->null, where A points to the node contains 16 what is

Data Structure by Java . help me quickly please ..
consider a link list 16-->5--7-->4-->-->12-->null, where A points to the node contains 16 what is the output of the following code public int D51(Node m) if (m.data %3 == 0){ m.data++; return (m.data); else return 2 + DS1m.next); } System.out.println(DS1(A)): * (3 Points) 10 8 18 None of the above 16
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
