• Post Reply Bookmark Topic Watch Topic
  • New Topic

linked list  RSS feed

 
sam liya
Ranch Hand
Posts: 1274
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
actually this may not a fully java question.But i think it is not wrong to ask this in this forum.
How can we find the median of set of numbers using a linked list ?
 
Garrett Rowe
Ranch Hand
Posts: 1296
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First sort the List. Then if you know the size() of the sorted List, what's the easiest way of choosing the median value?
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!