[ Web Proxy ]
URL:
Viewing: https://raw.githubusercontent.com/feinibuai/JavaArithmetic/master/src/LeetCode/LeetCode77.java [Back]  [Original]

package LeetCode;

import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;

public class LeetCode77 {

    //https://leetcode-cn.com/problems/combinations/description/

    /// : O(n^k)
    /// : O(k)

    private ArrayList res;

    public List combine(int n, int k) {

        res = new ArrayList();
        if(n 

Web Proxy Viewer  |  New URL  |  Original Page