leetcode/include/s0025_reverse_nodes_in_k-group.hpp

18 lines
329 B
C++
Raw Normal View History

2022-11-21 13:15:56 +00:00
#ifndef S0025_REVERSE_NODES_IN_K_GROUP_HPP
#define S0025_REVERSE_NODES_IN_K_GROUP_HPP
2022-11-15 07:00:00 +00:00
#include <tuple>
2022-11-30 10:20:36 +00:00
#include <utility>
2022-11-15 07:00:00 +00:00
2023-01-30 12:17:47 +00:00
#include "structures.hpp"
2022-11-15 07:00:00 +00:00
2023-01-30 12:17:47 +00:00
using namespace std;
2022-11-15 07:00:00 +00:00
2022-11-30 10:20:36 +00:00
class S0025 {
2022-11-15 07:00:00 +00:00
public:
ListNode* reverseKGroup(ListNode* head, int k);
2022-11-30 10:20:36 +00:00
pair<ListNode*, ListNode*> myReverse(ListNode* head, ListNode* tail);
2022-11-15 07:00:00 +00:00
};
#endif