Bookmark Topic Watch Topic
  • New Topic

Missing Code  RSS feed

 
Juuzou Suzuya
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Report post to moderator
Guys can you help me with this one missing code?



The missing part is the one before reversePrint(list);

The output should be.

null
Three
Two
One
Zero
 
fred rosenberger
lowercase baba
Bartender
Posts: 12565
49
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Report post to moderator
What have you tried?

We don't just give out homework answers. We will help you figure it out, but you need to ShowSomeEffort
 
Juuzou Suzuya
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Report post to moderator
Yes sir. I am trying to reverse the input array list.

I was able to output the same input, but stucked on reversing it. Aside I am also stucked in an error stackoverflow sir. Thank you.
 
Henry Wong
author
Sheriff
Posts: 23295
125
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Report post to moderator

If all you want to do is print the list in reverse, why do you need to reverse the list? Why not just traverse the list backwards to print?

It may be a little slow, but so is reversing the list and printing the list itself. Plus, printing methods that affect what they are printing are generally not the norm.

Henry
 
Juuzou Suzuya
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Report post to moderator
Sir, I will mark this case resolved. Since I was informed that we cannot seek help for this problem.
Thank you so much for your help!
 
Campbell Ritchie
Marshal
Posts: 56584
172
  • Mark post as helpful
  • send pies
  • Report post to moderator
Welcome to the Ranch

I do not think your question has been resolved.
 
Henry Wong
author
Sheriff
Posts: 23295
125
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Report post to moderator
Campbell Ritchie wrote:
I do not think your question has been resolved.


Yeah, looks like the OP was asked to ShowSomeEffort -- and the OP would rather just abandon the topic. Definitely not resolved, but since the OP no longer want to engage to get some help, I guess we can lock the topic.

Henry
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!