Thread Rating:
• 0 Vote(s) - 0 Average
• 1
• 2
• 3
• 4
• 5
 Task 8 compare results asvivian i do the numbers Posts: 5 Threads: 1 Joined: Aug 2017 Reputation: 0 09-21-2017, 01:04 AM (09-12-2017, 11:22 PM)lusth Wrote: Halve is supposed to be iterative. Is yours iterative? It is, it starts at one and doubles up to the closest exponent of 2 below the number takes half of that, then adds it to a recursion that starts over calculating the halve of whatever remains. I'm sorry if that is sharing a solution, but to my understanding, it is exactly how you described doing it in this thread. Is that not a proper method to execute it? mkkeffeler Newbie Posts: 3 Threads: 0 Joined: Aug 2017 Reputation: 0 09-21-2017, 05:10 PM This is the only task I am still unsure about. I have yet to receive any further correspondence regarding what my error was specifically. I had the same error as outlined above. My halve function is iterative. I do not add to the callstack at any point in the entire task as far as I can see. The only thing I have seen that could be a problem was that my babyl function used 2 separate "-" operations, rather than 1 call to "-". Could this have been the problem? I understand this is a difficult week for getting definitive answers but I am feeling as though the expectation for this to be resolved is a bit unrealistic. lusth Administrator Posts: 210 Threads: 15 Joined: Jul 2017 Reputation: 12 7 minutes ago (09-21-2017, 01:04 AM)asvivian Wrote: (09-12-2017, 11:22 PM)lusth Wrote: Halve is supposed to be iterative. Is yours iterative? It is, it starts at one and doubles up to the closest exponent of 2 below the number takes half of that, then adds it to a recursion that starts over calculating the halve of whatever remains. I'm sorry if that is sharing a solution, but to my understanding, it is exactly how you described doing it in this thread. Is that not a proper method to execute it? That is how I do it. But that still doesn't answer the question of whether your solution is iterative or not. « Next Oldest | Next Newest »

Forum Jump:

Users browsing this thread: 1 Guest(s)