首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏蛮三刀的后端开发专栏

    Combinations组合

    做DFS时,有很多小细节,比如该题,temp需要pop,不能在上面加入result那里做,应该是在调用递归后做。 此题肯定有非递归写法,有空琢磨。

    97740发布于 2019-03-26
  • 来自专栏给永远比拿愉快

    LeetCode: Combinations

    问题: Given two integers n and k, return all possible combinations ofk numbers out of 1 ... n. solution is: [ [2,4], [3,4], [2,3], [1,2], [1,3], [1,4], ] 解答思路: 首先我们从n个数中取一个数,然后剩下的n-1个数又构成一个Combinations

    48510发布于 2019-01-25
  • 来自专栏Reck Zhang

    LeetCode 0077 - Combinations

    Combinations Desicription Given two integers n and k, return all possible combinations of k numbers out

    32130发布于 2021-08-11
  • 来自专栏程序编程之旅

    POJ 1306 Combinations

    Computing the exact number of ways that N things can be taken M at a time can be a great challenge when N and/or M become very large. Challenges are the stuff of contests. Therefore, you are to make just such a computation given the following: GIVEN: 5 <= N <= 100; 5 <= M <= 100; M <= N Compute the EXACT value of: C = N! / (N-M)!M! You may assume that the final value of C will fit in a 32-bit Pascal LongInt or a C long. For the record, the exact value of 100! is: 93,326,215,443,944,152,681,699,238,856,266,700,490,715,968,264,381,621, 468,592,963,895,217,599,993,229,915,608,941,463,976,156,518,286,253, 697,920,827,223,758,251,185,210,916,864,000,000,000,000,000,000,000,000 Input

    53330发布于 2021-01-19
  • 来自专栏计算机视觉与深度学习基础

    Leetcode 77 Combinations

    Given two integers n and k, return all possible combinations of k numbers out of 1 ... n.

    76850发布于 2018-01-12
  • 来自专栏全栈程序员必看

    LeetCode77:Combinations

    Given two integers n and k, return all possible combinations of k numbers out of 1 … n.

    45310编辑于 2022-07-07
  • 来自专栏米扑专栏

    【leetcode】Letter Combinations of a Phone Number

    Question :  Given a digit string, return all possible letter combinations that the number could represent tmp += dic[num][i]; getRet(digits, tmp, pos+1, result); } } }; 参考推荐: Letter Combinations

    53650发布于 2019-02-19
  • 来自专栏皮皮星球

    Combinations

    Combinations Given two integers n and k, return all possible combinations of k numbers out of 1 ... n

    56120发布于 2020-09-23
  • 来自专栏SnailTyan

    Combinations

    1); combination.pop_back(); } } }; Reference https://leetcode.com/problems/combinations

    55430发布于 2019-05-25
  • 来自专栏JNing的专栏

    Combinations

    Problem # Given two integers n and k, # return all possible combinations of k numbers out of 1 ..

    89240发布于 2018-09-27
  • 来自专栏算法修养

    Combinations

    class Solution { public: vector<vector<int>> ans; vector<vector<int>> combine(int n, int k) { if(k>n) return ans; vector<int> res; fun(0,0,n,k,res); return ans; } void fun(in

    66840发布于 2019-11-04
  • 来自专栏leetcode_solutions

    Letter Combinations of a Phone Number

    【题目描述】 Given a digit string, return all possible letter combinations that the number could represent

    56050发布于 2019-03-14
  • 来自专栏若尘的技术专栏

    Leetcode 题目解析之 Combinations

    Given two integers n and k, return all possible combinations of k numbers out of 1 ... n.

    1.5K30编辑于 2022-03-07
  • 来自专栏全栈程序员必看

    Combinations「建议收藏」

    Given two integers n and k, return all possible combinations of k numbers out of 1 … n.

    33320编辑于 2022-11-08
  • 来自专栏Felix的技术分享

    【LeetCode】Letter Combinations of a Phone Number

    【LeetCode】Letter Combinations of a Phone Number 题目 在手机九宫格键盘上输入一串数字,给出可能打印出来的字符串的集合。

    90740发布于 2018-06-12
  • 【LightOJ】1067 - Combinations(Lucas & 逆元)

    点击打开题目 1067 - Combinations PDF (English) Statistics Forum Time Limit: 2 second(s) Memory Limit

    24810编辑于 2025-08-27
  • 来自专栏JNing的专栏

    Letter Combinations of a Phone Number

    Problem # Given a digit string, # return all possible letter combinations that the number could

    38720发布于 2018-09-28
  • 来自专栏计算机视觉与深度学习基础

    Leetcode 17 Letter Combinations of a Phone Number

    Given a digit string, return all possible letter combinations that the number could represent.

    631100发布于 2018-01-12
  • 来自专栏Reck Zhang

    LeetCode 0017 - Letter Combinations of a Phone Number

    Letter Combinations of a Phone Number Given a digit string, return all possible letter combinations that

    31610发布于 2021-08-11
  • 来自专栏算法修养

    LeetCode 17 Letter Combinations of a Phone Number

    题目 class Solution { public: char a[10][5]={{'\0'},{'\0'},{'a','b','c'},{'d','e','f'},{'g','h','i'},{'j','k','l'},{'m','n','o'},{'p','q','r','s'},{'t','u','v'},{'w','x','y','z'}}; vector<string> ans; vector<string> letterCombinations(string digi

    43950发布于 2019-07-03
领券