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)


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