Top "Combinations" questions

A combination is a selection of objects from a larger collection in no particular order.

C# (String.StartsWith && !String.EndsWith && !String.Contains) using a List

I am a newbie in C#, and I am having problems. I have 2 List, 2 strings and a getCombinations(string) method …

c# string linq combinations startswith
Combining multiple "transform" entries in Less

I have two mixins which both convert to -webkit-transform: .rotate(@deg) { -webkit-transform: rotate(@deg); } .scale(@factor) { -webkit-transform: scale(@factor); } When …

css combinations less css-transforms
Python keydown combinations (ctrl + key or shift + key)

I have some python code with keydown events happening, I am basically wondering if it is possible to have two …

python pygame combinations keydown
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. For …

c# string combinations words
Algorithm to determine coin combinations

I was recently faced with a prompt for a programming algorithm that I had no idea what to do for. …

c++ algorithm combinations combinatorics
Faster alternative to nested loops?

I have a need to create a list of combinations of numbers. The numbers are quite small so I can …

c# combinations
Path.Combine and the dot notation

I'm looking for something akin to Path.Combine method that will help me correctly combine absolute and relative paths. For …

c# .net path directory combinations
Non-redundant version of expand.grid

The R function expand.grid returns all possible combination between the elements of supplied parameters. e.g. > expand.grid(…

r combinations
How many different possible ways can persons be seated in a round table?

I am developing an algorithm and am looking at a possibility of the maximum number of iterations before arriving at …

algorithm math combinations permutation discrete-mathematics
Get all pairs in a list using LINQ

How do I get all possible pairs of items in a list (order not relevant)? E.g. if I have …

c# linq tuples combinations