MCPcopy Create free account
hub / github.com/Ainevsia/Leetcode-Rust / combine

Method combine

77. Combinations/Solution.cpp:10–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8class Solution {
9public:
10 vector<vector<int>> combine(int n, int k) {
11 vector<vector<int>> v;
12 vector<int> buf;
13 this->recur(n, k, v, buf);
14 return v;
15 }
16//recur
17 void recur(int n, int k, vector<vector<int>> & v, vector<int> & buf) {
18 if ( k == 0 ) {

Callers

nothing calls this directly

Calls 1

recurMethod · 0.95

Tested by

no test coverage detected