leetcode/include/s0025_reverse_nodes_in_k-group.hpp
2023-01-30 20:17:47 +08:00

18 lines
329 B
C++

#ifndef S0025_REVERSE_NODES_IN_K_GROUP_HPP
#define S0025_REVERSE_NODES_IN_K_GROUP_HPP
#include <tuple>
#include <utility>
#include "structures.hpp"
using namespace std;
class S0025 {
public:
ListNode* reverseKGroup(ListNode* head, int k);
pair<ListNode*, ListNode*> myReverse(ListNode* head, ListNode* tail);
};
#endif