IP#4 : LinkedList improvement
LinkedList improvement Ashur Baroutta In the previous submission, we worked on a LinkedList problem and got our solution to a point where the run time was very fast, though our memory management was ranked quite low in comparison. That didn't sit well, so today we try to tackle optimizing it in terms of memory efficiency. Our original solution for the problem, deleting duplicates, is as follows. So while the solution is acceptable, it exposed a weakness in my line of thinking. Fewer lines of code, or fewer words, does not inherently mean fewer resources utilized while code is compiled and executed. It seemed natural to think but I need to break this idea. After working through different types of solutions and researching a better way to solve the problem in terms of speed and memory usage. I was able to manage the following. Originally, I just started with one node and iterated through the list with a basic while loop. This time, what I did is had a node ...