18 lines
329 B
C++
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
|