- #1
transgalactic
- 1,395
- 0
i got a sorted linked list from the smallest to the biggest
in each node i can go 1 , 10 ,100 steps forward
i need to find an object in this linked list
if the object is found i need to return it if not then null
what is the most affective way to do that
i can do a simple loop each time it does one step
and then i will surely get the answer
how to use those 10 and 100 step to make it more affective?
i got the skeleton for this function and some missing part:
http://img513.imageshack.us/my.php?image=36394139eh1.gif
i need to fill them with something in order to make it work like they told
in each node i can go 1 , 10 ,100 steps forward
i need to find an object in this linked list
if the object is found i need to return it if not then null
what is the most affective way to do that
i can do a simple loop each time it does one step
and then i will surely get the answer
how to use those 10 and 100 step to make it more affective?
i got the skeleton for this function and some missing part:
http://img513.imageshack.us/my.php?image=36394139eh1.gif
i need to fill them with something in order to make it work like they told
Last edited: