Random commentary about Machine Learning, BigData, Spark, Deep Learning, C++, STL, Boost, Perl, Python, Algorithms, Problem Solving and Web Search
Node* reverseLL(Node* n) { Node* curr = n; Node* prev = null; while(curr !=null) { Node* temp = curr.next; curr.next = prev; prev = curr; curr = temp; } return prev; }
No comments:
Post a Comment