leetcode

Solution to some Leetcode problems written in C++
git clone git://git.dimitrijedobrota.com/leetcode.git
Log | Files | Refs | README | LICENSE

0237.cpp (150B)


0 class Solution {
1 public:
2 void deleteNode(ListNode *node) {
3 node->val = node->next->val;
4 node->next = node->next->next;
5 }
6 };