Forum

Number Of Page View:100,000+/Months
LOGIN |New User

Reply

Find middle element of LinkedList
Find the size of list then divide by 2 and pass it into get(int i) methods.
e.g.

int size = list.size();
int middle = (size / 2);

return list.get(middle).toString();
Posted By: Name:Shashi Verma URL: Find middle element of LinkedList


Warning: mysql_close(): supplied argument is not a valid MySQL-Link resource in /home/content/85/10130885/html/forums/index.php on line 95