Go Back  
Reply
 
Thread Tools
Old 11-01-2012   #1
apollo18
Member
 
apollo18's Avatar
 
Join Date: Jan 2012
Posts: 71
Likes: 8
Liked 18 Times in 9 Posts
Mentioned: 2 Post(s)
Tagged: 0 Thread(s)
Help Me My Teacher Asked QUESTION can any body solve it

boolean Fun(Node first) {
Node node_i = first;
Node node_j = first;

while(node_j != null && node_j.next != null) {
node_i = node_i.next;
node_j = node_j.next.next;

if(node_i == node_j)
return true;
}
return false;
}
apollo18 is offline   Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



PS3Hax.net is Copyright © 2010-2013.
Use of this site is governed by our Terms of Use and Privacy Policy. All Trademarks and images are owned by their respected owners.
Posts and links are subject to each author on this forum and are no way affiliated with the operations and/or opinions of ps3hax.net
All times are GMT -5. The time now is 04:57 AM.