combinations
Pascal's triangle in C with combinations
#include <stdio.h> long factorial(int num) { int counter; int fact = 1; for (counter = num; counter > 0; counter--) fact *= counter;[详细]
2023-02-14 14:31 分类:问答Words combinations without repetition
I have 10 words. How can I get all possible combinations of 5 words (n=10, k=5). The order does not matter.[详细]
2023-02-14 04:50 分类:问答Array Path Combinations
I\'m not sure how to title the question I have so I can\'t be certain this hasn\'t been answered before. That said, following is a description of my programming question.[详细]
2023-02-13 20:01 分类:问答Matlab get rid of loops
I\'m a newbie in Matlab and trying get rid of Java/C++ customs. The question is \"how I can get rid of these for loops.\"[详细]
2023-02-13 15:31 分类:问答generate all combination
Given buckets of unique numbers, how do we generate all combinations where you choosing a number from each bucket only once.[详细]
2023-02-13 12:34 分类:问答getting every possible combination in a list
suppose I had something like this: L1=[\'cat\', \'dog\', \'fish\', \'rabbit\', \'horse\', \'bird\', \'frog\', \'mouse\'...][详细]
2023-02-13 00:12 分类:问答Combinations with multiple containers of varying sizes
If you know what this kind of problem is called, let me know (unless you actually know the answer to the question).[详细]
2023-02-12 06:56 分类:问答Course schedule using php/mysql
The problem consists of a course scheduler (for university/college). If I am not using SQL: i have one array of arrays and one 2-dimensional array. Each array in the first array contains the unique id[详细]
2023-02-12 05:18 分类:问答Algorithms - Combinations and Permutations
A hwk question and apparently also a common interview question I\'m having trouble with: \"Write an algorithm (pseudocode) that prints out all the subsets of three elements of a set of n elements.The[详细]
2023-02-10 06:49 分类:问答combinations of players for a team in C
I am trying to generate all combinations of players to make up a team of basketball players. Let\'s say there\'s 5 positions(SG, PG, SF, PF, C) and I need to fill a rooster with 9 players, 2 of each p[详细]
2023-02-09 15:44 分类:问答