python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
How many objects can I construct with given number of items
I have a number of ingredients and must know the maximum number of sandwiches (Big and small sandwiches) I can make with it. If ingredients remain, the result must be false.
Big sandwich : 4 slices o...
Julie
Votes: 0
Answers: 1
Mapping an index to each pair of unique points
Given an sample size N, I want to map each pair of unique points to an index, is such a way that I generate the pair using the index.
example - let's say N=5, so the number of unique pairs is N*(N-1)/...
Michael Y
Votes: 0
Answers: 1
A sudoku problem: Efficiently find or approximate probability distribution over chosen numbers at each index of an array with no repeats
I'm looking for an efficient algorithm to generate or iteratively approximate a solution to the problem described below.
You are given an array of length N and a finite set of numbers Si for each inde...
Jingjin Wang
Votes: 0
Answers: 1
How to create all possible enumerations of multiple arrays
I think this is somewhat a combinatorics problem, but its been so long since i've done that that im quite rusty. I have a dynamic number of arrays, each with a dynamic number of elements. I am trying ...
jekelija
Votes: 0
Answers: 2