Skip to content

Instantly share code, notes, and snippets.

View cli248's full-sized avatar
🎯
Focusing

Chen Liu cli248

🎯
Focusing
View GitHub Profile
@cli248
cli248 / reverse.cpp
Last active December 26, 2015 12:08
Linked List Gists: (1) reverse a linked list
/*
Credit to Leetcode: http://leetcode.com/2010/04/reversing-linked-list-iteratively-and.html
*/
struct Node {
int val;
Node *next;
Node(int value):val(value), next(NULL) {};
};