algo/c-cpp/06_linkedlist/palindromeList/ListNode.hpp
TripleZ 387f9278b1
palindromeList: another implementation
O(n) time complexity & O(1) space complexity
2018-10-10 13:32:57 +08:00

17 lines
211 B
C++

/**
* Author: TripleZ<me@triplez.cn>
* Date: 2018-10-10
* Brief: ListNode class.
*/
#ifndef _LISTNODE_HPP_
#define _LISTNODE_HPP_
class ListNode {
public:
int val;
ListNode *next;
};
#endif